10-27-2003, 04:50 PM
Hi,
I've completed my first openGL program (under Mandrake Linux 9.0 using the Gnome desktop). I use glutKeyboardFunc(keyboard) to capture keystrokes in a function 'keyboard', and this works. One problem is that it only detects key presses. I would like to do one or both of the following:
1. I would like to detect key releases.
2. I would like to scan the keyboard at any time and read the state of the keys.
Does anyone know if there is a way of doing this.
Thanks in advance,
Ray
I've completed my first openGL program (under Mandrake Linux 9.0 using the Gnome desktop). I use glutKeyboardFunc(keyboard) to capture keystrokes in a function 'keyboard', and this works. One problem is that it only detects key presses. I would like to do one or both of the following:
1. I would like to detect key releases.
2. I would like to scan the keyboard at any time and read the state of the keys.
Does anyone know if there is a way of doing this.
Thanks in advance,
Ray