From f8bc66282afa752a91aea6fc87dd4f0a323986a5 Mon Sep 17 00:00:00 2001 From: Icebob Date: Sat, 4 Jul 2015 23:11:04 +0200 Subject: Added sleep in while true --- touch.py | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v1.2.1