Module keys

Helper for dealing with keypresses

This module is a lua script (keys.lua), you need to explicitly load it with require('keys')

Class keys

keys:keys() Starts the key handler if not already running, returns whether or not it was started
keys:getkey() Returns a single key that has been pressed since the last time getkey was called, or nil if no key was pressed.
keys:stop() Stops the keys
keys:anykey() Blocks until any key is pressed


Class keys

keys:keys()
Starts the key handler if not already running, returns whether or not it was started
keys:getkey()
Returns a single key that has been pressed since the last time getkey was called, or nil if no key was pressed.
keys:stop()
Stops the keys
keys:anykey()
Blocks until any key is pressed
generated by LDoc 1.4.3 Last updated 2017-11-05 19:49:59