diff --git a/main.py b/main.py index 417d189..52696ef 100644 --- a/main.py +++ b/main.py @@ -41,7 +41,7 @@ def main(device_path, dest_ip, dest_port): if e.type == libevdev.EV_ABS: if e.code in [libevdev.EV_ABS.ABS_X,libevdev.EV_ABS.ABS_MT_POSITION_X]: x_coor = e.value - elif e.code in [libevdev.EV_ABS.ABS_Y,libevdev.EV_ABS.ABS_MT_POSITION_Y] + elif e.code in [libevdev.EV_ABS.ABS_Y,libevdev.EV_ABS.ABS_MT_POSITION_Y]: y_coor = e.value # When we have both coordinates, send them