KeyHit?
Blitz3D Forums/Blitz3D Beginners Area/KeyHit?
| ||
Hi all, When will you use "Keyhit" to check for the no. of times pressed? It seems that "KeyDown" is usually used. Thanks in advance |
| ||
You may want to check for a single 'press' of a button which keydown won't give you, keydown will simply tell you that the button is depressed. Much like mousehit/mousedown, mousehit will detect individual clicks, mousedown will simply tell you the mouse button is pressed. |
| ||
I see, thank you, Matty. :D |
| ||
Remember that KeyHit actually reports the number of times the key has been pressed since the last time KeyHit was called. |
| ||
Thank you, big10p. :D |