PDA

View Full Version : Reading from the keyboard



Kikazaru
05-22-2008, 03:21 AM
How can I read the state of the keyboard under linux? I want to be able to find out when the arrow keys are pressed or not, and some other keys. It'll be enough to get press/release events, but I don't want to use glut and glut callbacks.

Any ideas?

Thanks!

ZbuffeR
05-22-2008, 09:30 AM
Use SDL or GLFW. Both are cross platform.
I really like GLFW.

Kikazaru
05-22-2008, 07:18 PM
Thanks!

I scanned the manual and it seems like like GLFW is exactly what I need! (I didn't see it yet but I guess there is some way to open a full screen window)

ZbuffeR
05-22-2008, 11:11 PM
yes of course. Use GLFW_FULLSCREEN as mode argument to glfwOpenWindow.
The User guide and Reference PDFs of GLFW are neat.

Kikazaru
05-23-2008, 12:09 AM
Excellent, thanks!