lovr.keypressed
EditThis callback is called when a key is pressed.
function lovr.keypressed(key, scancode, repeat)
-- your code here
endArguments
| Name | Type | Description |
| key | KeyCode | The key that was pressed. |
| scancode | number | The id of the key (ignores keyboard layout, may vary between keyboards). |
| repeat | boolean | Whether the event is the result of a key repeat instead of an actual press. |
Returns
Nothing