Event

Generic input event type.

Typetable

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

getmouselocation()

Return current mouse location in screen.

Return

PointF

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.