Browse Source

Fixed struct format to prevent lagging cursor and future bug

master
Linus 6 years ago
parent
commit
b75c1ac54f
  1. 2
      remarkable_mouse/remarkable_mouse.py

2
remarkable_mouse/remarkable_mouse.py

@ -104,7 +104,7 @@ def read_tablet(args): @@ -104,7 +104,7 @@ def read_tablet(args):
stdout = open_eventfile(args)
while True:
_, _, _, _, e_type, e_code, e_value = struct.unpack('4IHHI', stdout.read(24))
_, _, e_type, e_code, e_value = struct.unpack('2IHHi', stdout.read(16))
if e_type == EV_ABS:

Loading…
Cancel
Save