check for key presses using select case

BlitzPlus Forums/BlitzPlus Beginners Area/check for key presses using select case

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 don't know if there is a spesific way todo this. But you could do something like:

If Keyhit(57) KeyUsed="Space"
if Keyhit(1) KeyUsed ="Esc"

Select KeyUsed
  Case "Space"
   FireFunction()
  Case "Esc"
   End
End Select
KeyUsed = "Null"


You could keep the KeyUsed if statements in an include file so they are out the way.