# InputEventSubscription

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

Input event subscription.

```ds title="InputEventSubscription"
export struct InputEventSubscription {
    flags: InputEventFlags;
    device: InputDeviceHandle;
    deviceKind: InputDeviceKind;
    window: WindowHandle;
    mode: InputEventMode;
    capacity: uint32;
    overflow: InputEventOverflow;
}
```

[language/library/src/input/binding/event.ds:66:81](https://github.com/destack-sh/destack/blob/main/language/library/src/input/binding/event.ds#L66-L81)

## Members

### `flags: InputEventFlags`

Event flags.

### `device: InputDeviceHandle`

Device filter.

### `deviceKind: InputDeviceKind`

Device kind filter.

### `window: WindowHandle`

Window filter.

### `mode: InputEventMode`

Event decoding mode.

### `capacity: uint32`

Queue capacity in events, or zero for the host default.

### `overflow: InputEventOverflow`

Queue overflow policy.
