# InputHapticsBinding

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

Haptics binding family.

```ds title="InputHapticsBinding"
export interface InputHapticsBinding {
    listHapticEffects(device: InputDeviceHandle): Result<HapticEffect[], HostError>;
    playHaptics(device: InputDeviceHandle, effect: HapticEffect, parameters: &'a readonly HapticParameters): Result<HapticResult, HostError>;
    stopHaptics(device: InputDeviceHandle): Result<void, HostError>;
}
```

[language/library/src/input/binding/haptics.ds:38:69](https://github.com/destack-sh/destack/blob/main/language/library/src/input/binding/haptics.ds#L38-L69)

## Members

### `listHapticEffects(device: InputDeviceHandle): Result<HapticEffect[], HostError>`

List supported haptic effects.

### `playHaptics(device: InputDeviceHandle, effect: HapticEffect, parameters: &'a readonly HapticParameters): Result<HapticResult, HostError>`

Play one haptic effect.

### `stopHaptics(device: InputDeviceHandle): Result<void, HostError>`

Stop active haptic effects.
