Event
Generic input event type.
Type | table |
Class methods
isshiftpressed()
Return whether Shift key is pressed.
Return
boolean
iscontrolpressed()
Return whether Control key is pressed.
Return
boolean
isaltpressed()
Return whether Alt key is pressed.
Return
boolean
ismetapressed()
Return whether Win or Command key is pressed.
Return
boolean
Class properties
integer
maskshift
Modifier for Shift key.
integer
maskcontrl
Modifier for Control key.
integer
maskalt
Modifier for Alt key.
integer
maskmeta
Modifier for Win or Command key.
Properties
EventType
type
The type of the event.
integer
modifiers
A bit array of keyboard modifiers of the event.
integer
timestamp
Time when event was created, starts from when machine was booted.