lib:keyboard
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| lib:keyboard [2025/12/29 07:13] – wahplus | lib:keyboard [2026/01/21 16:18] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | The keyboard API is located in the public runtime as keyboard and doesn' | + | ====== Keyboard library ====== |
| - | <WRAP center round todo 10%> | + | The keyboard library is located in the userspace environment as keyboard and doesn' |
| - | todo box | + | |
| - | </ | + | |
| + | ``keyboard.keys: | ||
| + | A table that contains all the keys based on their number, and vice-versa. Works like it does in OpenOS. | ||
| + | |||
| + | ``keyboard.getCtrlDown(): | ||
| + | Returns ``true`` if the Ctrl key is being held right now, otherwise ``false``. | ||
| + | |||
| + | ``keyboard.getAltDown(): | ||
| + | Returns ``true`` if the Alt key is being held right now, otherwise ``false``. | ||
| + | |||
| + | ``keyboard.getShiftDown(): | ||
| + | Returns ``true`` if the Shift key is being held right now, otherwise ``false``. | ||
lib/keyboard.1766992406.txt.gz · Last modified: (external edit)
