Responsible for the event handling of elements.

Static variables

@:value(false)staticread onlyisAltDown:Bool = false

true if the Alt key is held down.

@:value(false)staticread onlyisCtrlDown:Bool = false

true if the Ctrl key is held down.

@:value(false)staticread onlyisShiftDown:Bool = false

true if the Shift key is held down.

staticread onlykeyboard:Null<Keyboard>

staticread onlymouse:Null<Mouse>

@:value(0)staticread onlymouseDX:Int = 0

The delta x position of the mouse (the difference of the x position to the last frame)

@:value(0)staticread onlymouseDY:Int = 0

The delta y position of the mouse (the difference of the y position to the last frame)

@:value(0)staticread onlymouseX:Int = 0

The x position of the mouse

@:value(0)staticread onlymouseY:Int = 0

The y position of the mouse

Static methods

staticinlineaddEvent(event:Event):Void

Adds an event to the event array. Events are sent in an update loop and not directly at the moment they happen to prevent stack overflows through circular calls and to make the overall process more stable.

staticcheckKeyCodePress():Void

staticinit():Void

staticinlineregisterCutCopyPaste(onCut:() ‑> String, onCopy:() ‑> String, onPaste:String ‑> Void):Void

staticregisterElement(element:Element):Void

staticreset():Void

Cancels ALL events. Used internally most of the time.

staticinlineunregisterCutCopyPaste():Void

staticupdate():Void

Updates all the events and calls registered listeners. Used internally most of the time.