aboutsummaryrefslogtreecommitdiff
path: root/touch.py
diff options
context:
space:
mode:
authorNeodarZ <neodarz@neodarz.net>2017-06-03 14:07:10 +0200
committerNeodarZ <neodarz@neodarz.net>2017-06-03 14:07:10 +0200
commit441cfff763f74aab4b5b4964c1486a44dae2e933 (patch)
tree9c91637805ca439f7a914d4e969e7cef6f8c0522 /touch.py
parent91b75ad2b9a80c14382ebdc7e2566ef56b1fe999 (diff)
downloadwaveshare-7inch-touchscreen-driver-441cfff763f74aab4b5b4964c1486a44dae2e933.tar.xz
waveshare-7inch-touchscreen-driver-441cfff763f74aab4b5b4964c1486a44dae2e933.zip
Update for work with archlinux
Diffstat (limited to 'touch.py')
-rw-r--r--touch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/touch.py b/touch.py
index 4a5a358..fe13cf6 100644
--- a/touch.py
+++ b/touch.py
@@ -16,8 +16,8 @@ def read_and_emulate_mouse(deviceFound):
device = uinput.Device([
uinput.BTN_LEFT,
uinput.BTN_RIGHT,
- uinput.ABS_X + (0, 1024, 0, 0), #or 800
- uinput.ABS_Y + (0, 600, 0, 0), #ok 480
+ uinput.ABS_X + (0, 800, 0, 0), #or 800
+ uinput.ABS_Y + (0, 480, 0, 0), #ok 480
])
clicked = False