|press(key)||Send a keypress.|
|wait([key[, timeout]])||Wait for a key to be pressed.|
|last||The last key that was pressed.|
Send a keypress.
- key constants.KEY the key to press.
- wait([key[, timeout]])
Wait for a key to be pressed.
FIXME: while waiting for a key to be pressed, a task.yield() is performed, with identical limitations.
- key constants.KEY (optional)
- timeout int (milliseconds; 0 = wait forever) (optional)
the key that was pressed.