That's what I thought. Basically, as far as I can tell, the following code snippet has a potential for, not just a bug - but a virtually unreproduceable bug:
if dbKeyState(17)
/* Do Something... */
endif
/* more code (perhaps jump to another function and;...) */
...
/* Within other function... */
if dbKeyState(17)
/* Whoops, not TRUE anymore... */
endif
This is definately the makings of a virtually untraceable bug! That's why I never really liked the code snippets that show such possible conditions...
Is there a way to tell GDK *when* to read the keyboard/mouse/joystick? Or do we have to resort to WIN32's GetKeyboardState() and related functions? Personally, I don't mind if I have to, but would rather not - if for no other reason than to be consistant...
Anyone?
JTK