OBJECT

InputDevice

Represents the physical instance of a hardware peripheral agnostic of any input API. That is to mean that one device may implement multiple device APIs (driver instances).

  • type InputDevice implements Node {
  • # The enumerated driver instances of this device.
  • instances: [InputDeviceInstance]!
  • # The Vendor ID of the device.
  • vendorId: Int!
  • # The Product ID of the device.
  • productId: Int!
  • # The Instance GUID of the device.
  • instanceId: UUID!
  • # A user-friendly name to refer to this device.
  • friendlyName: String!
  • # The hardware-defined name of this device.
  • deviceName: String!
  • # The path to this device instance.
  • devicePath: String!
  • # A GUID that uniquely identifies the device.
  • #
  • # In general, this GUID is opaque and arbitrary, but must be consistent with the
  • # IDeviceEnumerator that produced this device.
  • #
  • # On Windows, this will be the device instance GUID as enumerated from
  • # DirectInput, and
  • # on Linux, this GUID will be in SDL2 format. The passthrough and keyboard
  • # instances
  • # will always have the GUIDs PassthroughInstanceGuid and
  • # KeyboardInstanceGuid
  • # in particular.
  • id: ID!
  • }