Reading from the keyboard

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!

Use SDL or GLFW. Both are cross platform.
I really like GLFW.

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)

yes of course. Use GLFW_FULLSCREEN as mode argument to glfwOpenWindow.
The User guide and Reference PDFs of GLFW are neat.

Excellent, thanks!

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.