Skip to main content

GamepadAxisEvent

Gamepad axis event. See Gamepads for information on responding to controller input. Gamepad instances receive this event;

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • Parameters

    • axis: Axes

      The Gamepad axis

    • value: number

      A numeric value between -1 and 1

    • self: Gamepad

      Reference to the gamepad

    Returns GamepadAxisEvent

Properties

publicaxis

axis: Axes

The Gamepad Axis

publicinheritedother

other: Gamepad | null = null

Other target object for this event

publicself

self: Gamepad

Reference to the gamepad

publicinheritedtarget

target: Gamepad

Target object for this event.

publicvalue

value: number

A numeric value between -1 and 1, 0 is the neutral axis position.

Accessors

publicinheritedbubbles

  • get bubbles(): boolean
  • set bubbles(value: boolean): void
  • If set to false, prevents event from propagating to other actors. If true it will be propagated to all actors that apply.


    Returns boolean

  • Parameters

    • value: boolean

    Returns void

Methods

publicinheritedstopPropagation

  • stopPropagation(): void
  • Prevents event from bubbling


    Returns void