Module keyboard
keyboard (typing, not piano)
Functions
code (key, value) | key code callback, script should redefine |
char (ch) | key character callback, script should redefine |
shift () | return SHIFT state |
alt () | return ALT state |
ctrl () | return CTRL state |
meta () | return META state |
Tables
state | key states |
Functions
- code (key, value)
-
key code callback, script should redefine
Parameters:
- key
- value
- char (ch)
-
key character callback, script should redefine
Parameters:
- ch
- shift ()
- return SHIFT state
- alt ()
- return ALT state
- ctrl ()
- return CTRL state
- meta ()
- return META state