AbstractReadonlyaltIs alt being pressed?
ReadonlybuttonThe ID of the button affected.
0: left/primary button. 1: right/secondary button. 2: middle/tertiary button. etc...
ReadonlyctrlIs control being pressed?
Abstract ReadonlyfocusThe focus type of this event. Can be null.
If null, this event cannot be focused, since events are focused by their FocusType as a group.
ReadonlyneedsCan this event be dispatched without a target?
ReadonlypropagationWhich event propagation model is this event type using?
ReadonlyreversedIs this event dispatched in reverse-order?
ReadonlyshiftIs shift being pressed?
ReadonlysourceThe source of this event. If null, this is an anonymous source, such as a virtual pointer. Not useful on its own, but is useful when passed along in feedback events; for example, in a feedback event that is dispatched whenever a button is hovered, the pointer event source could be used to provide haptic feedback, since the user knows which "real" pointer source each pointerID is mapped to.
ReadonlytargetThe target of this event. Can be null
Abstract ReadonlytypeThe type of this event instance. Compare this against the static
WidgetEvent."type" in the class or a known string value.
Comparing this value and doing an instanceof check must be equivalent.
ReadonlyuserIs this event capturable by user event handlers?
Note that if the event does not propagate, capturing the event still has an effect; events are handled in the order for which the handlers were added, meaning that if a handler captures the event, the other handlers won't be called.
ReadonlyxPointer event position's X coordinate in pixels. Not an integer.
ReadonlyyPointer event position's Y coordinate in pixels. Not an integer.
Static ReadonlytypeThe type of this event class. Each event type should be unique, and have a unique class.
Due to Typescript limitations, no compile error is thrown when this static field is not set at a sub-class. Despite this, the type must be set to a unique string value.
Is the button affected the left/primary button?
Is the button affected the middle/tertiary button?
Alias for PointerButtonEvent#isLeft
Is the button affected the right/secondary button?
Alias for PointerButtonEvent#isRight
Alias for PointerButtonEvent#isMiddle
AbstractcloneCreate a new TricklingEvent with the same properties as this, except with a new given target.
AbstractcorrectCreate a new PointerEvent event with the same properties as this, except with new PointerEvent#x and PointerEvent#y values corrected for a given offset.
Check if the type of this event instance matches the type of a given event class, asserting that the instance is of the class' type.
A PointerEvent for button presses/releases, containing helpers for checking whether it was the left/primary button, right/secondary button or middle/tertiary button. Always take the button ID into account when handling this event as you get a pair of PointerPressEvent and PointerReleaseEvent events per button ID.
Has a focus type decided by the child classes and does not need focus.