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