mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-08-04 11:37:32 -04:00
Updated API Keyboard (markdown)
parent
d011c3ecce
commit
1aa1ce656e
@ -1,3 +1,10 @@
|
|||||||
|
[](http://ocdoc.cil.li/)
|
||||||
|
|
||||||
|
For those that don't like images: the wiki has moved to a new place, http://ocdoc.cil.li/.
|
||||||
|
*This wiki will no longer be updated.*
|
||||||
|
|
||||||
|
****
|
||||||
|
|
||||||
This API allows you to refer to key codes by name, using the `keyboard.keys` table. This is a two-directional table, for example, the value of `keyboard.keys.numpad0` is `0x52`, and the value of `keyboard.keys[0x52]` is the string `numpad0`.
|
This API allows you to refer to key codes by name, using the `keyboard.keys` table. This is a two-directional table, for example, the value of `keyboard.keys.numpad0` is `0x52`, and the value of `keyboard.keys[0x52]` is the string `numpad0`.
|
||||||
|
|
||||||
Please see [the Lua file containing the API's implementation](https://github.com/MightyPirates/OpenComputers/blob/master/src/main/resources/assets/opencomputers/loot/OpenOS/lib/keyboard.lua) for the list of available names.
|
Please see [the Lua file containing the API's implementation](https://github.com/MightyPirates/OpenComputers/blob/master/src/main/resources/assets/opencomputers/loot/OpenOS/lib/keyboard.lua) for the list of available names.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user