GetKey?

BlitzMax Forums/BlitzMax Beginners Area/GetKey?

This is almost similar to the B3D/B+ variant. With a bit of extra typing you can get it to return Ascii values instead of scancodes...
Function GetKey()
	Repeat
		For Local n=1 To 255
			If KeyHit(n) Return n
		Next
	Forever
End Function
Or perhaps it's better to add it to the system.xxx.bmx mods?
Something along these lines:
Method GetKey( )
	For Local keycode = 1 to 255
     		Local n=bbSystemKeyHit[keycode]
		if n return n
	Next
End Method
Don't know if it'll work...