From 10d6a98ca150c24f3991de73eb7d350514991ac3 Mon Sep 17 00:00:00 2001 From: Jocelyn Thode Date: Thu, 28 Oct 2021 13:37:01 +0200 Subject: [PATCH] device: add support for the PRO X Wireless mouse --- lib/logitech_receiver/base_usb.py | 4 ++-- lib/logitech_receiver/descriptors.py | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/logitech_receiver/base_usb.py b/lib/logitech_receiver/base_usb.py index 21531018..1950d873 100644 --- a/lib/logitech_receiver/base_usb.py +++ b/lib/logitech_receiver/base_usb.py @@ -21,7 +21,7 @@ ## USB product IDs for receivers: 0xC526 - 0xC5xx ## Wireless PIDs for hidpp10 devices: 0x2006 - 0x2019 ## Wireless PIDs for hidpp20 devices: 0x4002 - 0x4097, 0x4101 - 0x4102 -## USB product IDs for hidpp20 devices: 0xC07D - 0xC093, 0xC32B - 0xC344 +## USB product IDs for hidpp20 devices: 0xC07D - 0xC094, 0xC32B - 0xC344 ## Bluetooth product IDs (for hidpp20 devices): 0xB012 - 0xB0xx, 0xB32A - 0xB3xx # USB ids of Logitech wireless receivers. @@ -203,7 +203,7 @@ def other_device_check(bus_id, vendor_id, product_id): if vendor_id != 0x46d: # Logitech return if bus_id == 0x3: # USB - if (product_id >= 0xC07D and product_id <= 0xC093 or product_id >= 0xC32B and product_id <= 0xC344): + if (product_id >= 0xC07D and product_id <= 0xC094 or product_id >= 0xC32B and product_id <= 0xC344): return _wired_device(product_id, 2) elif bus_id == 0x5: # Bluetooth if (product_id >= 0xB012 and product_id <= 0xB0FF or product_id >= 0xB32A and product_id <= 0xB3FF): diff --git a/lib/logitech_receiver/descriptors.py b/lib/logitech_receiver/descriptors.py index 07a9def0..8fb9714d 100644 --- a/lib/logitech_receiver/descriptors.py +++ b/lib/logitech_receiver/descriptors.py @@ -580,6 +580,15 @@ _D('G900 Chaos Spectrum Gaming Mouse', codename='G900', usbid=0xc081) _D('G903 Lightspeed Gaming Mouse', codename='G903', usbid=0xc086) _D('G903 Hero Gaming Mouse', codename='G903 Hero', usbid=0xc091) _D('GPro Gaming Mouse', codename='GPro', usbid=0xc088) +_D( + 'PRO X Wireless', + kind='mouse', + codename='PRO X', + protocol=4.2, + wpid='4093', + usbid=0xc094, +) + _D('M500S Mouse', codename='M500S', usbid=0xc093, interface=1) _D(