# GamepadMotion

`import { GamepadMotion } from "destack:input/binding";`

Gamepad motion state snapshot.

```ds title="GamepadMotion"
export struct GamepadMotion {
    timestampNs: uint64;
    accelerationX: float64;
    accelerationY: float64;
    accelerationZ: float64;
    gravityX: float64;
    gravityY: float64;
    gravityZ: float64;
    gyroscopeX: float64;
    gyroscopeY: float64;
    gyroscopeZ: float64;
}
```

[language/library/src/input/binding/gamepad.ds:92:113](https://github.com/destack-sh/destack/blob/main/language/library/src/input/binding/gamepad.ds#L92-L113)

## Members

### `timestampNs: uint64`

Monotonic update timestamp in nanoseconds.

### `accelerationX: float64`

Linear acceleration x component in meters per second squared.

### `accelerationY: float64`

Linear acceleration y component in meters per second squared.

### `accelerationZ: float64`

Linear acceleration z component in meters per second squared.

### `gravityX: float64`

Gravity x component in meters per second squared when available.

### `gravityY: float64`

Gravity y component in meters per second squared when available.

### `gravityZ: float64`

Gravity z component in meters per second squared when available.

### `gyroscopeX: float64`

Rotation rate around x in radians per second.

### `gyroscopeY: float64`

Rotation rate around y in radians per second.

### `gyroscopeZ: float64`

Rotation rate around z in radians per second.
