Merge pull request #1 from LinusCDE/master

Fixed struct format to prevent lagging cursor and future bug
This commit is contained in:
Evan Widloski
2019-02-24 17:27:25 -06:00
committed by GitHub

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: