menu
InputDeviceBinding
import { InputDeviceBinding } from "destack:input/binding";
Device binding family.
1export interface InputDeviceBinding {2 listInputDevices(query: &'a readonly InputDeviceQuery): Result<InputDevice[], HostError>;3 openInputDevice(id: &'a readonly string): Result<InputDeviceHandle, HostError>;4 closeInputDevice(device: InputDeviceHandle): Result<void, HostError>;5 describeInputDevice(device: InputDeviceHandle): Result<InputDevice, HostError>;6 readInputDeviceControls(device: InputDeviceHandle): Result<InputDeviceControls, HostError>;7 grabInputDevice(device: InputDeviceHandle, isEnabled: boolean): Result<void, HostError>;8}Members
listInputDevices(query: &'a readonly InputDeviceQuery): Result<InputDevice[], HostError>List input devices.
openInputDevice(id: &'a readonly string): Result<InputDeviceHandle, HostError>Open one input device.
closeInputDevice(device: InputDeviceHandle): Result<void, HostError>Close one input device.
describeInputDevice(device: InputDeviceHandle): Result<InputDevice, HostError>Describe one input device.
readInputDeviceControls(device: InputDeviceHandle): Result<InputDeviceControls, HostError>Query controls for one input device.
grabInputDevice(device: InputDeviceHandle, isEnabled: boolean): Result<void, HostError>Enable or disable exclusive device grab.