Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GamepadButtonEvent

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

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

button

button: Buttons

The Gamepad button

other

other: T | null

Other target object for this event

target

target: Gamepad

value

value: number

A numeric value between 0 and 1

Accessors

bubbles

  • 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

  • If set to false, prevents event from propagating to other actors. If true it will be propagated to all actors that apply.

    Parameters

    • value: boolean

    Returns void

Methods

stopPropagation

  • stopPropagation(): void