Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Keyboard events don't fire on OS X unless in fullscreen #8

Closed
cpetzold opened this Issue Apr 21, 2012 · 1 comment

Comments

Projects
None yet
2 participants

It seems that the sdl window isn't being focused properly in os x. All keyboard input is just sent to the terminal rather than to the apparently focused window. It also doesn't seem to load as a full os x application as it doesn't show an icon in the dock and it doesn't modify the top os x toolbar.

I tried adding GrabInput (http://www.libsdl.org/docs/html/sdlwmgrabinput.html), but it doesn't seem to help: cpetzold/node-sdl@b2e096d#src/sdl.cc

Collaborator

Freezerburn commented Jan 31, 2014

Keyboard events are being sent to the window just fine in a test application under the latest overhaul of the bindings. However, it still doesn't modify the top OS X toolbar or show a real icon in the dock. (though the dock icon probably has to do with needing to package the application a certain way) I'm not sure if you need to do something inside SDL to modify the toolbar, or if something else has to be done. I'll open a new issue about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment