device: add descriptor for Logitech PRO X Wireless Gaming Headset
This commit is contained in:
parent
c005a94a0a
commit
fa83e6ebb8
|
@ -739,3 +739,14 @@ _D(
|
||||||
# Some exotics...
|
# Some exotics...
|
||||||
|
|
||||||
_D('Fujitsu Sonic Mouse', codename='Sonic', protocol=1.0, wpid='1029')
|
_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
|
||||||
|
)
|
||||||
|
|
|
@ -397,7 +397,9 @@ class Device:
|
||||||
|
|
||||||
def ping(self):
|
def ping(self):
|
||||||
"""Checks if the device is online, returns True of False"""
|
"""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
|
self.online = protocol is not None
|
||||||
if protocol:
|
if protocol:
|
||||||
self._protocol = protocol
|
self._protocol = protocol
|
||||||
|
|
|
@ -43,6 +43,7 @@ DEVICE_KIND = _NamedInts(
|
||||||
remote=0x07,
|
remote=0x07,
|
||||||
trackball=0x08,
|
trackball=0x08,
|
||||||
touchpad=0x09,
|
touchpad=0x09,
|
||||||
|
headset=0x0D, # not from Logitech documentation
|
||||||
remote_control=0x0E, # for compatability with HID++ 2.0
|
remote_control=0x0E, # for compatability with HID++ 2.0
|
||||||
receiver=0x0F # for compatability with HID++ 2.0
|
receiver=0x0F # for compatability with HID++ 2.0
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue