- Home /
Question by
zammle2009wtf · Nov 25, 2020 at 05:19 PM ·
inputunityeditordatadeviceusb
Unity read raw HID data => Debug.Log( data )
I've been trying to read raw HID input from my HID USB device for the last couple weeks.
Why is this so hard? All I want to do is read HEX, Byte, Bit, or something and Debug.Log() this data.
With command line and terminal all I have to do is type 1 command to read data from a Device.
InputSystem.RegisterLayout<GrayhillHID>("GrayhillINFO",
matches: new InputDeviceMatcher()
.WithInterface("HID")
.WithCapability("VendorID", 0x1658) // VID
.WithCapability("ProductID", 0x0060)); // PID
When linking, Linux, Windows, and Mac display their VendorID fields differently.
Linux - "idVendor" seen from terminal
Mac - "Vendor ID" seen from system information
Documentation in Unity HID never says if we go by their syntax of their documentation "vendorId"
or if we go by our systems syntax such as "idVendor"
Both cases didn't work when setting up a custom input controller.
Comment