trap all input?

Blitz3D Forums/Blitz3D Programming/trap all input?

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.

Replace keydown with keyhit, it will tell you if it was hit, not if it is being pressed at the exact same moment you happen to be calling keydown()...

While KeyDown(1)=0
    For i%=0 To 255
        If KeyHit(i%) Then Print "you pressed key n."+i%
    Next
Wend