Hi :) how know when a keyboard key is just being released

Blitz3D Forums/Blitz3D Programming/Hi :) how know when a keyboard key is just being released

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.


sKey57Down=False

While Not KeyHit(1)

If KeyDown(57) Then sKey57Down=True ; Can also use KeyHit(57)

If (Not KeyDown(57)) And sKey57Down=True
	Print "key 57 was just released!"
	sKey57Down=False
EndIf


Wend