keyhit() is not 100%

Blitz3D Forums/Blitz3D Beginners Area/keyhit() is not 100%

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.

i think wolron's method is best.

Function CheckForKeyHit(key%)

if keyhit(key)
return true
else return false

endif


end function

if CheckForKeyHit(28) = true and a=0

value=true

endif