receiver: add remote device type

This commit is contained in:
Peter F. Patel-Schneider 2020-11-30 07:58:48 -05:00
parent 7d0402a97f
commit 52049af8e1
2 changed files with 3 additions and 1 deletions

View File

@ -37,7 +37,7 @@ del getLogger
# documentation, some of them guessed.
#
DEVICE_KIND = _NamedInts(keyboard=0x01, mouse=0x02, numpad=0x03, presenter=0x04, trackball=0x08, touchpad=0x09)
DEVICE_KIND = _NamedInts(keyboard=0x01, mouse=0x02, numpad=0x03, presenter=0x04, remote=0x07, trackball=0x08, touchpad=0x09)
POWER_SWITCH_LOCATION = _NamedInts(
base=0x01,

View File

@ -169,6 +169,8 @@ def device_icon_set(name='_', kind=None):
names += ('input-mouse', 'input-tablet')
elif str(kind) == 'trackball':
names += ('input-mouse', )
elif str(kind) == 'headset':
names += ('audio-headphones', 'audio-headset')
names += ('input-' + str(kind), )
# names += (name.replace(' ', '-'),)