menu
InputDevice
import { InputDevice } from "destack:input/binding";
Input device descriptor.
1export struct InputDevice {2 id: string;3 instanceId: string;4 hardwareId: string;5 serialNumber: string;6 locationId: string;7 guid: string;8 name: string;9 transport: string;10 kind: InputDeviceKind;11 vendorId: uint16;12 productId: uint16;13 keyCount: uint16;14 buttonCount: uint16;15 axisCount: uint16;16 capabilities: InputDeviceCapabilities;17 isConnected: boolean;18 isVirtual: boolean;19 isSystem: boolean;20}Members
id: stringStable input device identifier.
instanceId: stringStable instance identifier for the current connection.
hardwareId: stringHost hardware identifier when available.
serialNumber: stringHost serial number when available.
locationId: stringHost location identifier when available.
guid: stringGamepad-style GUID when available.
name: stringHost-visible device name.
transport: stringHost transport name when available.
kind: InputDeviceKindDevice kind.
vendorId: uint16USB or Bluetooth vendor identifier when available.
productId: uint16USB or Bluetooth product identifier when available.
keyCount: uint16Logical key count when reported by the host.
buttonCount: uint16Logical button count when reported by the host.
axisCount: uint16Logical axis count when reported by the host.
capabilities: InputDeviceCapabilitiesCapability flags.
isConnected: booleanWhether this device is currently connected.
isVirtual: booleanWhether this device is virtual or emulated.
isSystem: booleanWhether this device is provided by the system stack.