2
0
Эх сурвалжийг харах

testevdev: Associate HID reports for pedals with their other test data

This is how these globals were intended to have been used, similar to
what we already did for the Fanatec device.

Fixes: 3772d6cc "testevdev: Add raw HID report descriptors where available"
Signed-off-by: Simon McVittie <[email protected]>
Simon McVittie 1 жил өмнө
parent
commit
2cfeff1505

+ 4 - 0
test/testevdev.c

@@ -2003,6 +2003,8 @@ static const GuessTest guess_tests[] =
       .ev = { 0x09 },
       .ev = { 0x09 },
       /* X, Y, Z */
       /* X, Y, Z */
       .abs = { 0x07 },
       .abs = { 0x07 },
+      .hid_report_descriptor_length = sizeof (vrs_pedals_hid_report_descriptor),
+      .hid_report_descriptor = &vrs_pedals_hid_report_descriptor[0],
     },
     },
     { /* https://github.com/ValveSoftware/Proton/issues/5126 */
     { /* https://github.com/ValveSoftware/Proton/issues/5126 */
       .name = "Heusinkveld Heusinkveld Sim Pedals Ultimate",
       .name = "Heusinkveld Heusinkveld Sim Pedals Ultimate",
@@ -2019,6 +2021,8 @@ static const GuessTest guess_tests[] =
       .ev = { 0x09 },
       .ev = { 0x09 },
       /* RX, RY, RZ */
       /* RX, RY, RZ */
       .abs = { 0x38 },
       .abs = { 0x38 },
+      .hid_report_descriptor_length = sizeof (heusinkveld_pedals_hid_report_descriptor),
+      .hid_report_descriptor = &heusinkveld_pedals_hid_report_descriptor[0],
     },
     },
     { /* https://github.com/ValveSoftware/Proton/issues/5126 */
     { /* https://github.com/ValveSoftware/Proton/issues/5126 */
       .name = "Vitaly [mega_mozg] Naidentsev ODDOR-handbrake",
       .name = "Vitaly [mega_mozg] Naidentsev ODDOR-handbrake",