phaser - v4.0.0-rc.4
    Preparing search index...

    Contains information about a specific button on a Gamepad. Button objects are created automatically by the Gamepad as they are needed.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    events: EventEmitter

    An event emitter to use to emit the button events.

    index: number

    The index of this Button.

    A reference to the Gamepad that this Button belongs to.

    pressed: boolean

    Is the Button being pressed down or not?

    threshold: number

    Can be set for analogue buttons to enable a 'pressure' threshold, before a button is considered as being 'pressed'.

    value: number

    Between 0 and 1.

    Methods

    • Destroys this Button instance and releases external references it holds.

      Returns void