Abstract Create a new PointerButtonEvent.
Readonly altIs alt being pressed?
Readonly buttonThe ID of the button affected.
0: left/primary button. 1: right/secondary button. 2: middle/tertiary button. etc...
Readonly ctrlIs control being pressed?
Readonly focusThe 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.
Readonly needsCan this event be dispatched without a target?
Readonly reversedIs this event dispatched in reverse-order?
Readonly shiftIs shift being pressed?
Readonly targetThe target of this event. Can be null
Readonly xPointer event position's X coordinate in pixels. Not an integer.
Readonly yPointer event position's Y coordinate in pixels. Not an integer.
Is the button affected the left/primary button?
Is the button affected the middle/tertiary button?
Alias for isLeft
Is the button affected the right/secondary button?
Alias for isRight
Alias for isMiddle
Abstract cloneAbstract correctCreate a new PointerEvent event with the same properties as this, except with new x and y values corrected for a given offset.
Generated using TypeDoc
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 PointerPress and PointerRelease events per button ID.
Has a focus type decided by the child classes and does not need focus.