Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
api:keyboard [2015/01/14 00:58]
rakiru Fix broken github link (branch rename)
api:keyboard [2015/06/11 22:01]
gamax92 Fix formatting
Line 6: Line 6:
  
 Additionally it registers event listeners to keep track of the state of individual keys. This internal state can be queried using the following functions: Additionally it registers event listeners to keep track of the state of individual keys. This internal state can be queried using the following functions:
 +
 - `keyboard.isAltDown():​ boolean`  ​ - `keyboard.isAltDown():​ boolean`  ​
   Checks if one of the Alt keys is currently being held by some user.   Checks if one of the Alt keys is currently being held by some user.
Line 16: Line 17:
 - `keyboard.isShiftDown():​ boolean`  ​ - `keyboard.isShiftDown():​ boolean`  ​
   Checks if one of the Shift keys is currently being held by some user.   Checks if one of the Shift keys is currently being held by some user.
- 
  
 [keyboard]: https://​github.com/​MightyPirates/​OpenComputers/​assets/​opencomputers/​lua/​rom/​lib/​keyboard.lua [keyboard]: https://​github.com/​MightyPirates/​OpenComputers/​assets/​opencomputers/​lua/​rom/​lib/​keyboard.lua