Class PointerButtonEventAbstract

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.

Hierarchy

Constructors

Properties

alt: boolean

Is alt being pressed?

button: number

The ID of the button affected.

0: left/primary button. 1: right/secondary button. 2: middle/tertiary button. etc...

ctrl: boolean

Is control being pressed?

focusType: null | FocusType

The 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.

needsFocus: boolean

Can this event be dispatched without a target?

reversed: boolean

Is this event dispatched in reverse-order?

shift: boolean

Is shift being pressed?

target: null | Widget

The target of this event. Can be null

x: number

Pointer event position's X coordinate in pixels. Not an integer.

y: number

Pointer event position's Y coordinate in pixels. Not an integer.

Accessors

Methods

Generated using TypeDoc