Keyboard
Documentation of the keyboard API.
The keyboard API is located in the public runtime as keyboard
and doesn't need to be require
d.
keyboard.keys: table
A table that contains all the keys based on their number, and vice-versa. Works like OpenOS.keyboard.getCtrlDown(): boolean
Returnstrue
if the Ctrl key is being held right now, otherwisefalse
.keyboard.getAltDown(): boolean
Returnstrue
if the Alt key is being held right now, otherwisefalse
.keyboard.getShiftDown(): boolean
Returnstrue
if the Shift key is being held right now, otherwisefalse
.
Last updated