> ## Documentation Index
> Fetch the complete documentation index at: https://rive.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# GamepadEvent

One field change on an already-connected gamepad (`gamepadEvent`); includes
the full post-update state and optional standard-layout intent.

(Coming soon)

## Fields

### `changeKind`

W3C change kind: `"button"` or `"axis"`.

### `changeIndex`

1-based W3C button or axis index for this change.

### `changeValue`

### `hasStandardButtonIntent`

### `hasStandardAxisIntent`

### `intentButton`

### `intentAxis`

### `deviceId`

Read-only full device state after the change (same fields as \[GamepadConnected]).

### `buttonMask`

### `buttons`

### `axes`

### `isStandardMapping`

### `mapping`

### `gamepadMapping`

### `west`

### `south`

### `north`

### `east`

### `leftShoulder`

### `rightShoulder`

### `back`

### `forward`

### `leftStickButton`

### `rightStickButton`

### `dpadUp`

### `dpadDown`

### `dpadLeft`

### `dpadRight`

### `start`

### `leftStick`

### `rightStick`

### `leftTrigger`

### `rightTrigger`

### `leftTriggerPressed`

### `rightTriggerPressed`

## Methods

### `buttonPressed`

<div class="signature">
  ```lua theme={null}
  buttonPressed(index: number) -> boolean
  ```
</div>

### `buttonValue`

<div class="signature">
  ```lua theme={null}
  buttonValue(index: number) -> number
  ```
</div>

### `axis`

<div class="signature">
  ```lua theme={null}
  axis(index: number) -> number
  ```
</div>
