mirror of
https://github.com/erjiang/huion-keys.git
synced 2026-03-23 21:54:53 +03:00
Accept 0x08 as first byte in addition to 0xf7
This commit is contained in:
parent
22a9ab4222
commit
826defad86
@ -115,8 +115,9 @@ def get_button_press(hidraw):
|
|||||||
global SCROLL_STATE
|
global SCROLL_STATE
|
||||||
while True:
|
while True:
|
||||||
sequence = hidraw.read(12)
|
sequence = hidraw.read(12)
|
||||||
# don't think there's anything we care about that doesn't start with 0xf7
|
# 0xf7 is what my Kamvas Pro 22 reads
|
||||||
if sequence[0] != 0xf7:
|
# another model seems to send 0x08
|
||||||
|
if sequence[0] != 0xf7 and sequence[0] != 0x08:
|
||||||
pass
|
pass
|
||||||
if sequence[1] == 0xe0: # buttons
|
if sequence[1] == 0xe0: # buttons
|
||||||
# doesn't seem like the tablet will let you push two buttons at once
|
# doesn't seem like the tablet will let you push two buttons at once
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user