# InputEventSensor

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

Input sensor event.

```ds title="InputEventSensor"
export struct InputEventSensor {
    kind: "sensor";
    header: InputEventHeader;
    action: InputEventAction;
    sensor: SensorKind;
    hostCode: uint32;
    hostValue: int64;
    x: float64;
    y: float64;
    z: float64;
    w: float64;
}
```

[language/library/src/input/binding/event.ds:330:351](https://github.com/destack-sh/destack/blob/main/language/library/src/input/binding/event.ds#L330-L351)

## Members

### `kind: "sensor"`

Event discriminator.

### `header: InputEventHeader`

Shared event header.

### `action: InputEventAction`

Event action.

### `sensor: SensorKind`

Sensor kind.

### `hostCode: uint32`

Host-native sensor code.

### `hostValue: int64`

Host-native sensor value.

### `x: float64`

Sensor x component.

### `y: float64`

Sensor y component.

### `z: float64`

Sensor z component.

### `w: float64`

Sensor w component.
