KeyHit?

Blitz3D Forums/Blitz3D Beginners Area/KeyHit?

Happy Sammy(Posted 2008) [#1]
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


Matty(Posted 2008) [#2]
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.


Happy Sammy(Posted 2008) [#3]
I see, thank you, Matty. :D


big10p(Posted 2008) [#4]
Remember that KeyHit actually reports the number of times the key has been pressed since the last time KeyHit was called.


Happy Sammy(Posted 2008) [#5]
Thank you, big10p.
:D