KeyHit?

Blitz3D Forums/Blitz3D Beginners Area/KeyHit?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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