From 7945dd8980706da65f8983fb98f98f6441a87c17 Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Sun, 7 Sep 2025 22:28:34 +0500 Subject: [PATCH] fix(input_manager): exclude ASRock LED controller from gamepad detection Signed-off-by: Boris Yumankulov --- portprotonqt/input_manager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/portprotonqt/input_manager.py b/portprotonqt/input_manager.py index 8ae3a40..f77276c 100644 --- a/portprotonqt/input_manager.py +++ b/portprotonqt/input_manager.py @@ -1061,6 +1061,10 @@ class InputManager(QObject): try: devices = [InputDevice(path) for path in list_devices()] for device in devices: + # Skip ASRock LED controller (vendor ID: 26ce, product ID: 01a2) + if device.info.vendor == 0x26ce and device.info.product == 0x01a2: + logger.debug(f"Skipping ASRock LED controller: {device.name}") + continue caps = device.capabilities() if ecodes.EV_KEY in caps or ecodes.EV_ABS in caps: return device