[↑]
KEYBOARD
Get USB keyboard input information
KEYBOARD(ScanCode[,FunctionID])
KEYBOARD ScanCode [,FunctionID] OUT Result,ModifierKeyInformation
・Return values are all zero when the USB keyboard is not connected.
Arguments
ScanCode
USB Usage ID of the key you want to check: 0 to 255
FunctionID
The type of condition you want to know.
0 | Key is pressed |
1 | Cannot be used (if specified, zero is returned as the result) |
2 | The moment the key is pressed |
3 | The moment the key is released |
・0, if not specified.
Return Value
Results
1 if the key is specified by the function ID, 0 if not
ModifierKeyInformation
Returns modifier key press information in bits
bit0 | Windows Key |
bit1 | Shift Key |
bit2 | Ctrl Key |
bit3 | Alt Key |
About this site
Our site is an unofficial manual site of programming software "SmileBASIC" for NintendoSwitch™.
I acquire the content of the site from the
official reference site
of the
SmileBoom Co.Ltd.
that is the development and sales cause of the software in real time (a minimum period of 24 hours update) and display it.
For automatic update, contents may become improper.
Please confirm the correct content in an official site.
June 3, 2020
by mim
OK
|