Class PointerPress

A pointer press PointerButtonEvent (pointer button down).

Has no focus type 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

  • get isMiddle(): boolean
  • Is the button affected the middle/tertiary button?

    Returns boolean

  • get isRight(): boolean
  • Is the button affected the right/secondary button?

    Returns boolean

Methods

Generated using TypeDoc