・Even if there is no input from the keyboard, it doesn't wait for input.
・When there is a preceding key input, it returns one character at a time from the oldest input.
・If 0 is specified, a part of the controller's button input is returned as a key input.
・If 1 is specified, the controller input is ignored.
・0, if not specified.
Correspondence between controller input and characters is as follows
+Control Pad Right | CHR$(&H1C) |
+Control Pad Left | CHR$(&H1D) |
+Control Pad Up | CHR$(&H1E) |
+Control Pad Down | CHR$(&H1F) |
A Button | CHR$(&H0D) |
Y Button | CHR$(&H08) |
・Returns characters entered from the keyboard one by one.
・If there is no input, the empty string "" is returned.
・Special keys return the following characters.
Esc | CHR$(&H1B) |
Tab | CHR$(&H09) |
BackSpace | CHR$(&H08) |
Enter | CHR$(&H0D) |
Insert | CHR$(&H1A) |
Delete | CHR$(&H10) |
Home | CHR$(&H02) |
End | CHR$(&H03) |
PageUp | CHR$(&H11) |
PageDown | CHR$(&H12) |
→ | CHR$(&H1C) |
← | CHR$(&H1D) |
↑ | CHR$(&H1E) |
↓ | CHR$(&H1F) |
C$=INKEY$() KBONLY$=INKEY$(1)