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 <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2024-06-21 13:05:44 +01:00 committed by Sam Lantinga
parent 0f27686a51
commit 740850d3ce

View File

@ -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];