None. |
Halts the program execution until a key is pressed, then returns that key's ascii code.
WaitKey is provided for Blitz Basic compatibility and for writing quick and easy examples. It should not be used in a GUI based program that uses WaitEvent, as it may cause events to be 'lost' - eg: if a window close event occurs before a key is hit, it will be lost. This command is indentical in all respects to KeyWait |
; WaitKey Example
;---------------- Graphics 640,480 Text 0,0,"Press any key to continue." Flip key=WaitKey() Text 0,20,"The ASCII code of the key you pressed was: " + key Text 0,40,"Now press a key to quit." Flip WaitKey() End |