From 740850d3ceeb0a01a9ac3e6e394c1adb3804fa80 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 21 Jun 2024 13:05:44 +0100 Subject: [PATCH] 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 --- test/testevdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/testevdev.c b/test/testevdev.c index af91b3df27..b62e29c842 100644 --- a/test/testevdev.c +++ b/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];