device: add descriptor for Logitech PRO X Wireless Gaming Headset

This commit is contained in:
Peter F. Patel-Schneider 2021-12-16 22:04:04 -05:00
parent c005a94a0a
commit fa83e6ebb8
3 changed files with 15 additions and 1 deletions

View File

@ -739,3 +739,14 @@ _D(
# Some exotics...
_D('Fujitsu Sonic Mouse', codename='Sonic', protocol=1.0, wpid='1029')
# Headset
_D(
'Logitech PRO X Wireless Gaming Headset',
codename='PRO Wireless Headset',
protocol=2.0,
interface=3,
kind=_DK.headset,
usbid=0x0aba
)

View File

@ -397,7 +397,9 @@ class Device:
def ping(self):
"""Checks if the device is online, returns True of False"""
protocol = _base.ping(self.handle or self.receiver.handle, self.number, long_message=self.bluetooth)
protocol = _base.ping(
self.handle or self.receiver.handle, self.number, long_message=self.bluetooth or self._protocol >= 2.0
)
self.online = protocol is not None
if protocol:
self._protocol = protocol

View File

@ -43,6 +43,7 @@ DEVICE_KIND = _NamedInts(
remote=0x07,
trackball=0x08,
touchpad=0x09,
headset=0x0D, # not from Logitech documentation
remote_control=0x0E, # for compatability with HID++ 2.0
receiver=0x0F # for compatability with HID++ 2.0
)