Fixed struct format to prevent lagging cursor and future bug

This commit is contained in:
Linus
2019-02-24 16:00:00 +01:00
parent 1daaa1e3fe
commit b75c1ac54f

View File

@@ -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: