Module key

Key functions

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:

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.

Parameters:

Returns:

    constants.KEY the key that was pressed.

Fields

last
The last key that was pressed.
  • last int
generated by LDoc 1.4.3 Last updated 2017-09-02 23:31:52