Halyde Documentation

Powerful, modular, universal

User Tools

Site Tools


lib:keyboard

Keyboard library

The keyboard library is located in the userspace environment as keyboard and doesn't need to be required.

keyboard.keys: table
A table that contains all the keys based on their number, and vice-versa. Works like it does in OpenOS.

keyboard.getCtrlDown(): boolean
Returns true if the Ctrl key is being held right now, otherwise false.

keyboard.getAltDown(): boolean
Returns true if the Alt key is being held right now, otherwise false.

keyboard.getShiftDown(): boolean
Returns true if the Shift key is being held right now, otherwise false.

lib/keyboard.txt · Last modified: by wahplus