aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--touch.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/touch.py b/touch.py
index f32a28c..223c3da 100644
--- a/touch.py
+++ b/touch.py
@@ -29,6 +29,7 @@ def read_and_emulate_mouse(deviceFound):
b = f.read(25)
(tag, btnLeft, x, y) = struct.unpack_from('>c?HH', b)
print(btnLeft, x, y)
+ time.sleep(0.01)
if btnLeft:
device.emit(uinput.ABS_X, x, True)