Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TouchInputStatic

Hierarchy

  • TouchInputStatic

Index

Properties

_cancelled

_cancelled: boolean

_date

_date: number

_events

_mousePressed

_mousePressed: boolean

_moved

_moved: boolean

_pressedTime

_pressedTime: number

_released

_released: boolean

_screenPressed

_screenPressed: boolean

_triggered

_triggered: boolean

_wheelX

_wheelX: number

_wheelY

_wheelY: number

_x

_x: number

_y

_y: number

date

date: number

[read-only] The time of the last input in milliseconds.

static
property

date

type

Number

keyRepeatInterval

keyRepeatInterval: number

The interval of the pseudo key repeat in frames.

static
property

keyRepeatInterval

type

Number

keyRepeatWait

keyRepeatWait: number

The wait time of the pseudo key repeat in frames.

static
property

keyRepeatWait

type

Number

wheelX

wheelX: number

[read-only] The horizontal scroll amount.

static
property

wheelX

type

Number

wheelY

wheelY: number

[read-only] The vertical scroll amount.

static
property

wheelY

type

Number

x

x: number

[read-only] The x coordinate on the canvas area of the latest touch event.

static
property

x

type

Number

y

y: number

[read-only] The y coordinate on the canvas area of the latest touch event.

static
property

y

type

Number

Methods

Private _onCancel

  • _onCancel(x: number, y: number): void

Private _onLeftButtonDown

  • _onLeftButtonDown(event: MouseEvent): void

Private _onMiddleButtonDown

  • _onMiddleButtonDown(event: MouseEvent): void

Private _onMouseDown

  • _onMouseDown(event: MouseEvent): void

Private _onMouseMove

  • _onMouseMove(event: MouseEvent): void

Private _onMouseUp

  • _onMouseUp(event: MouseEvent): void

Private _onMove

  • _onMove(x: number, y: number): void

Private _onPointerDown

  • _onPointerDown(event: PointerEvent): void

Private _onRelease

  • _onRelease(x: number, y: number): void

Private _onRightButtonDown

  • _onRightButtonDown(event: MouseEvent): void

Private _onTouchCancel

  • _onTouchCancel(event: TouchEvent): void

Private _onTouchEnd

  • _onTouchEnd(event: TouchEvent): void

Private _onTouchMove

  • _onTouchMove(event: TouchEvent): void

Private _onTouchStart

  • _onTouchStart(event: TouchEvent): void

Private _onTrigger

  • _onTrigger(x: number, y: number): void

Private _onWheel

  • _onWheel(event: WheelEvent): void

Private _setupEventHandlers

  • _setupEventHandlers(): void

clear

  • clear(): void

initialize

  • initialize(): void

isCancelled

  • isCancelled(): boolean
  • Checks whether the right mouse button is just pressed.

    static
    method

    isCancelled

    Returns boolean

    True if the right mouse button is just pressed

isLongPressed

  • isLongPressed(): boolean
  • Checks whether the left mouse button or touchscreen is kept depressed.

    static
    method

    isLongPressed

    Returns boolean

    True if the left mouse button or touchscreen is long-pressed

isMoved

  • isMoved(): boolean
  • Checks whether the mouse or a finger on the touchscreen is moved.

    static
    method

    isMoved

    Returns boolean

    True if the mouse or a finger on the touchscreen is moved

isPressed

  • isPressed(): boolean
  • Checks whether the mouse button or touchscreen is currently pressed down.

    static
    method

    isPressed

    Returns boolean

    True if the mouse button or touchscreen is pressed

isReleased

  • isReleased(): boolean
  • Checks whether the left mouse button or touchscreen is released.

    static
    method

    isReleased

    Returns boolean

    True if the mouse button or touchscreen is released

isRepeated

  • isRepeated(): boolean
  • Checks whether the left mouse button or touchscreen is just pressed or a pseudo key repeat occurred.

    static
    method

    isRepeated

    Returns boolean

    True if the mouse button or touchscreen is repeated

isTriggered

  • isTriggered(): boolean
  • Checks whether the left mouse button or touchscreen is just pressed.

    static
    method

    isTriggered

    Returns boolean

    True if the mouse button or touchscreen is triggered

update

  • update(): void

Generated using TypeDoc