Key input and timer control in an opengl program

How can I implement an eficient keyboard input and timer control (i.e fps counter) under linux??? Where can I find such information?
Thx

You can always use the SDL http://www.libsdl.org library to do this for you.

And if you really want to do it yourself, you can download their source to see how they did it.

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