keyboard buffer

BlitzMax Forums/BlitzMax Programming/keyboard buffer

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.

Take a look at these two commands:

Asc and Chr

'ASC
'Get character value of the first character of a String

print Asc("A") '65
Print "A"[0] '65 - equivalent index style implementation

'CHR
'Chr returns a String of length 1 containing the unicode character of the value.

print Chr(65) 'A


Also you may want to look at the docks under keyHit() and keyDown(). You will find a table for keycodes that you can use such as:

if keyHit(KEY_ESCAPE) then ...




hope this helps.