Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 834 Bytes

File metadata and controls

9 lines (6 loc) · 834 Bytes
uid input-system-send-command-to-device

Send a command to a device

The Input System sends commands to the Device through InputDevice.ExecuteCommand<TCommand>. To monitor Device commands, use InputSystem.onDeviceCommand.

Each Device command implements the IInputDeviceCommandInfo interface, which only requires the typeStatic property to identify the type of the command. The native implementation of the Device should then understand how to handle that command. One common case is the "HIDO" command type which is used to send HID output reports to HIDs.