interface buttonChangeDetails {
    heldDown?: boolean;
    pressed?: boolean;
    released?: boolean;
    touchDown?: boolean;
    touchUp?: boolean;
    valueChanged?: boolean;
}

Properties

heldDown?: boolean

This button was pressed last update and is still pressed (only present if wrapperButtonConfig.fireWhileHolding was set to true on this button when the GamepadApiWrapper was initilized)

pressed?: boolean

This button was pressed this gamepad update

released?: boolean

This button was released this gamepad update

touchDown?: boolean

This button was touched this gamepad update

touchUp?: boolean

This button was no longer touched this gamepad update

valueChanged?: boolean

The value of the button changed (e.g. for variable pressure buttons like shoulder triggers)