Commit a7af210e authored by Benjamin Tissoires's avatar Benjamin Tissoires

tests/gamepads: add initial support for testing gamepads

Probably not enough, but at least this should allow to detect and test
https://patchwork.kernel.org/patch/11181161/Signed-off-by: Benjamin Tissoires's avatarBenjamin Tissoires <benjamin.tissoires@gmail.com>
parent ae696dba
Pipeline #71149 passed with stage
in 1 minute and 55 seconds
...@@ -87,6 +87,8 @@ class UHIDTestDevice(UHIDDevice): ...@@ -87,6 +87,8 @@ class UHIDTestDevice(UHIDDevice):
type = 'Mouse' type = 'Mouse'
elif 'ID_INPUT_KEY' in device.properties: elif 'ID_INPUT_KEY' in device.properties:
type = 'Key' type = 'Key'
elif 'ID_INPUT_JOYSTICK' in device.properties:
type = 'Joystick'
else: else:
# abort, the device has not been processed by udev # abort, the device has not been processed by udev
print('abort', devname, list(device.properties.items())) print('abort', devname, list(device.properties.items()))
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment