How do I get key events from a fullscreen OpenGL window?
I am writing a simple C application using CGL features on Mac OS X. CGL can create an OpenGL context that runs full screen, which is what I want. However, it steals focus from the terminal, so I have no way of capturing key events. Since I am not using Cocoa, how do I get the key events after the application is full screen? I would like to try and stay away from Cocoa because I need the app to be as portable as possible.
source to share