Module key
Key functions
Info:
- Copyright: 2014
- License: GPL
- Author: Magic Lantern Team
Functions
press (key) | Send a keypress. |
wait ([key[, timeout]]) | Wait for a key to be pressed. |
Fields
last | The last key that was pressed. |
Functions
- press (key)
-
Send a keypress.
Parameters:
- key int the key to press
- wait ([key[, timeout]])
-
Wait for a key to be pressed.
Parameters:
- key int (optional)
- timeout int (optional)
Returns:
-
int
the key that was pressed