Merge pull request #1 from LinusCDE/master
Fixed struct format to prevent lagging cursor and future bug
This commit is contained in:
@@ -104,7 +104,7 @@ def read_tablet(args):
|
|||||||
stdout = open_eventfile(args)
|
stdout = open_eventfile(args)
|
||||||
|
|
||||||
while True:
|
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:
|
if e_type == EV_ABS:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user