KeyDown() without Graphics()

BlitzMax Forums/BlitzMax Programming/KeyDown() without Graphics()

!!!!


Dude, just use EnablePolledInput().

For Keydown() events, I usually just enter a loop and don't exit until the KeyUp() event is encountered.




Please give an example! I'm going crazy...
I've tried something like this
enablepolledinput()
Repeat
Print "..."
If EventID()=EVENT_KEYUP Print "key pressed";go_exit=1
Until go_exit=1
End


I used PollEvent() but nothing to do..
but nothing to do: and I dont' want a WaitEvent() call.