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

    Contains information about a specific Gamepad Axis. Axis 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 axis events.

    index: number

    The index of this Axis.

    A reference to the Gamepad that this Axis belongs to.

    threshold: number

    Movement tolerance threshold below which axis values are ignored in getValue.

    value: number

    The raw axis value, between -1 and 1 with 0 being dead center. Use the method getValue to get a normalized value with the threshold applied.

    Methods

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

      Returns void

    • Applies the threshold value to the axis and returns it.

      Returns number