Browse Source

testevdev: Add a field for the USB device version

For some devices, such as the Steam Deck's built-in Steam Controller,
the version number reported via evdev and the version number reported
via USB are different. We don't currently use this information anyway,
but in case we want to use it in the future, let's include it in our
test data.

Signed-off-by: Simon McVittie <[email protected]>
Simon McVittie 1 year ago
parent
commit
740850d3ce
1 changed files with 1 additions and 0 deletions
  1. 1 0
      test/testevdev.c

+ 1 - 0
test/testevdev.c

@@ -81,6 +81,7 @@ typedef struct
     uint16_t vendor_id;
     uint16_t product_id;
     uint16_t version;
+    uint16_t usb_device_version;
     uint8_t ev[(EV_MAX + 1) / 8];
     uint8_t keys[(KEY_MAX + 1) / 8];
     uint8_t abs[(ABS_MAX + 1) / 8];