Browse Source

pynput should only read the stylus

master
Mendel Greenberg 4 years ago committed by GitHub
parent
commit
c969b308b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      remarkable_mouse/pynput.py

2
remarkable_mouse/pynput.py

@ -71,7 +71,7 @@ def read_tablet(args, remote_device): @@ -71,7 +71,7 @@ def read_tablet(args, remote_device):
log.debug('Chose monitor: {}'.format(monitor))
while True:
_, _, e_type, e_code, e_value = struct.unpack('2IHHi', remote_device.read(16))
_, _, e_type, e_code, e_value = struct.unpack('2IHHi', remote_device[0].read(16))
if e_type == e_type_abs:

Loading…
Cancel
Save