I am having a problem with losing keyboard response
when I mouse over a GLUI control. Its as if the keyboard
callback has been disabled. I can hold
down a key, move the mouse onto a panel and totally
miss the key up event. As soon as I move the mouse off
of the panel I get the key up event. If I put the cursor
over a control like a spinner I loose keyboard control and
never get it back. This is happening on XPPro and
Win2K. I have tried both analog and optical mice.
In examples 2 and 5 the "q" key is bound to quit. If I
take the actions described above the q key quits
working. It appears that once a glui component has
mouse focus keyboard events are ignored.
I am writing a Breakout game and need keyboard control
for the paddle and GLUI controls for ball speed etc...
Thanks for your time.
Logged In: YES
user_id=338692
GLUI maintains an active_control variable that controls
the routing of events to various GUI components.
I suggest experimenting with:
GLUI_Main::disactivate_current_control()
Otherwise you could hack GLUI here:
void glui_keyboard_func(unsigned char key, int x, int y)