Press any Key

BlitzPlus Forums/BlitzPlus Programming/Press any Key

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 can't see any solution to this using GetKey() alone GA. It's the wrong way to do it tbh.

Here's how I would do it...
Graphics 640,480,0,2

WaitForKeyOrMouse()
Text 0,0,"1st Press"
Flip

WaitForKeyOrMouse()
Text 0,40,"2nd Press"
Flip

Delay 2000



Function WaitForKeyOrMouse()

FlushKeys()
FlushMouse()

Local CheckKey=0

While CheckKey=0 And GetMouse()=0

	For Count=1 To 88
		CheckKey=CheckKey+KeyDown(Count)
	Next

Wend

End Function

Note: It doesn't check for the arrow keys, same as your example.