How to reproduce:
- Create a new project using the “Universal 3D” template
- Install the “Input System” package
- Connect the custom Bluetooth controller to the computer
- Observe the Console
Actual result: System.IndexOutOfRangeException is thrown
Expected result: No exceptions are thrown
Reproducible with: 1.19.0 (6000.4.7f1) (by user)
Reproducible on: Arch Linux (7.0.5-arch1-1) X64 (by user)
Not reproducible on: No other environments tested
Workaround:
Change the HID report descriptor from:
…[SKIPPED ABOVE]
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x81, 0x42, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,Null State)
0xC0, // End Collection
To the following:
…[SKIPPED ABOVE]
0x75, 0x04, // Report Size (4)
0x95, 0x01, // Report Count (1)
0x81, 0x42, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,Null State)
0x81, 0x01, // Input (Const,Array,Abs,No Wrap,Linear,Preferred)
0xC0, // End Collection
Notes: