Checking for 'Any Key'

BlitzMax Forums/BlitzMax Beginners Area/Checking for '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.

This is how I do it in my framework:

' -----------------------------------------------------------------------------
' ccAnyKeyPressed: Tests if any key has been hit
' -----------------------------------------------------------------------------
Function ccAnyKeyPressed%()
	For Local i% = 0 To 255		
		If KeyHit(i) Then Return 1
	Next
	Return 0
End Function