mouse but no keyboard working on mac osx

Problems building or running the engine, queries about how to use features etc.
Post Reply
meinas
Gnoblar
Posts: 1
Joined: Fri Oct 29, 2010 2:37 pm

mouse but no keyboard working on mac osx

Post by meinas »

Hi,

I've been working on getting OGRE running on my macbook pro (OSX 10.6.4 and XCode 3.2.4) and after much trial and error (I'm fairly new at this) I've compiled the OGRE source with CMake and got the tutorial framework compiling and running. The mouse works and I can move the camera around with it but keyboard input has no effect.

I'm assuming this has something to do with OIS? In the log the following lines come after OIS initialisation:

Code: Select all

21:54:53: *** Initializing OIS ***
21:54:53: Font SdkTrays/Captionusing texture size 512x256
21:54:53: Info: Freetype returned null for character 160 in font SdkTrays/Caption
21:54:53: Texture: SdkTrays/CaptionTexture: Loading 1 faces(PF_BYTE_LA,512x256x1) with  hardware generated mipmaps from Image. Internal format is PF_BYTE_LA,512x256x1.
21:54:53: Font SdkTrays/Valueusing texture size 512x512
21:54:53: Info: Freetype returned null for character 127 in font SdkTrays/Value
21:54:53: Info: Freetype returned null for character 128 in font SdkTrays/Value
I've searched the forums but I'm stumped, any suggestions?

Thanks
Lysis
Gnoblar
Posts: 2
Joined: Tue Oct 19, 2010 7:44 pm

Re: mouse but no keyboard working on mac osx

Post by Lysis »

I've got the same problem. If I find anything I'll post it here.

Cheers!
josericardojr
Gnoblar
Posts: 3
Joined: Thu Nov 18, 2010 5:03 pm

Re: mouse but no keyboard working on mac osx

Post by josericardojr »

Try to put the following in your cmake file:

add_executable(${OGRE_PROJECT_NAME} MACOSX_BUNDLE ${HDRS} ${SRCS})

Maybe this solve your problem.
Lysis
Gnoblar
Posts: 2
Joined: Tue Oct 19, 2010 7:44 pm

Re: mouse but no keyboard working on mac osx

Post by Lysis »

Thanks a lot! I replaced "win32" with "macosx_bundle" in the cmakelists.txt file, regenerated the osx project, set it up, and now it works.

I observe, however, that this detail is not mentioned in the wiki. It should probably be added.

Thanks again!
guillaumequest
Kobold
Posts: 32
Joined: Thu Aug 11, 2011 10:00 pm

Re: mouse but no keyboard working on mac osx

Post by guillaumequest »

Hello,
That is exactly what I've been looking for ! I really need to build my project under Max OSX in x86_64 but I'm using XCode directly to add my frameworks. However OIS doesn't respond to keystrokes. How do I use this fix (add_executable(${OGRE_PROJECT_NAME} MACOSX_BUNDLE ${HDRS} ${SRCS})) directly in XCode ?

Thanks a lot,
Guillaume
Post Reply