View Full Version : [TBGL] anykey
DirectuX
06-01-2019, 13:21
Hi,
I can't find a key equate for "anykey" to use with tbgl_GetWindowKeyState or TBGL_GetWindowKeyOnce,
something that has the behaviour of the console-module's "WaitKey".
How would you do that with uses "TBGL" and without uses "console" ?
Petr Schreiber
06-01-2019, 15:05
Hi,
there is no such thing, but you can have a look at:
TBGL_GetWindowAnyKeyState
While it is documented for "up to" 4 keys, you can supply as many keys as you want.
I am curious about the use case for "Waitkey" in the context of a graphical application.
Petr
DirectuX
06-01-2019, 16:20
I am curious about the use case for "Waitkey" in the context of a graphical application.
Petr
:D
Nothing that can't be workaround :
Modal help information is displayed for the user, I wanted that "any key" pressed quit this "popup" and returned to the main program rather than "hit *that* key to return"
DirectuX
06-01-2019, 18:49
Another use I can think of is sort of "input configuration" , something like press the key for "UP" ...