PDA

View Full Version : Behaviour of TBGL_GetAsyncKeyState?



Michael Hartlef
04-01-2017, 23:17
Hi,

running some old scripts, I noticed that TBGL_GetAsyncKeyState behaves like an KeyPressed function. It returns TRUE continiously as long as the key is pressed.

Is there anything like a KeyHit functionality, that only returns TRUE once, till it is released and pressed again?

Michael Hartlef
04-01-2017, 23:33
Hehe, guess I didn't use TB for a long time. Found the answer. I have to use

TBGL_GetWindowKeyOnce for that.

Petr Schreiber
07-01-2017, 17:47
Haha,

right you are Mike, that is the one to pick :)


Petr