# InputEventGamepad

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

Input gamepad event.

```ds title="InputEventGamepad"
export struct InputEventGamepad {
    kind: "gamepad";
    header: InputEventHeader;
    action: InputEventAction;
    controlKind: GamepadControlKind;
    control: GamepadControl;
    hostCode: uint32;
    hostValue: int64;
    value: float64;
    isPressed: boolean;
    isTouched: boolean;
}
```

[language/library/src/input/binding/event.ds:306:327](https://github.com/destack-sh/destack/blob/main/language/library/src/input/binding/event.ds#L306-L327)

## Members

### `kind: "gamepad"`

Event discriminator.

### `header: InputEventHeader`

Shared event header.

### `action: InputEventAction`

Event action.

### `controlKind: GamepadControlKind`

Gamepad control kind.

### `control: GamepadControl`

Gamepad control selector.

### `hostCode: uint32`

Host-native control code.

### `hostValue: int64`

Host-native control value.

### `value: float64`

Normalized control value.

### `isPressed: boolean`

Whether the control is pressed.

### `isTouched: boolean`

Whether the control is touched.
