menu
InputHapticsBinding
import { InputHapticsBinding } from "destack:input/binding";
Haptics binding family.
1export interface InputHapticsBinding {2 listHapticEffects(device: InputDeviceHandle): Result<HapticEffect[], HostError>;3 playHaptics(device: InputDeviceHandle, effect: HapticEffect, parameters: &'a readonly HapticParameters): Result<HapticResult, HostError>;4 stopHaptics(device: InputDeviceHandle): Result<void, HostError>;5}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.