No keyboard events on MacOS

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
mhack
Posts: 38
Joined: Sun Apr 01, 2007 2:13 am
Location: Montana, USA

No keyboard events on MacOS

Post by mhack »

I'm trying to build a cross-platform Irrlicht app using a Makefile instead of an XCode project. I can build and run a simple test application from MacOSX 10.5.2. The window draws my scene and I get mouse events through my event receiver but all keyboard input goes to the console window from which I launched the application.

When I build a test application in Xcode, I do get the keyboard events sent to my event receiver.

Does anyone know why this happens on a Mac? Are there some magic flags needed in my Makefile to get it to behave the same as an Xcode project? Currently, the only Mac-specific flags that I am using are:

CXXFLAGS += -DMACOSX
LDFLAGS += -framework Cocoa -framework OpenGL
Post Reply