Zyell / Python-Touchscreen-RightClick

Implements multitouch gestures for right click using evdev on Linux
MIT License
12 stars 7 forks source link

How to calculate touch unit resolution #5

Open sonvirgo opened 6 years ago

sonvirgo commented 6 years ago

I have other Tablet with wacom digitizer res_x = 13 # touch unit resolution # units/mm in x direction ? Does it cause this? tracking started!!! ('Total Fingers used: ', 2) tracking started!!! ('Total Fingers used: ', 2) tracking started!!! ('Total Fingers used: ', 2) tracking started!!! ('Total Fingers used: ', 1) ('Total Fingers used: ', 2) Traceback (most recent call last): File "Python_Touchscreen_RightClick.py", line 191, in initiate_gesture_find(args.use_pymouse, args.long_press_workaround) File "Python_Touchscreen_RightClick.py", line 172, in initiate_gesture_find MT_event.remove_fingers() File "Python_Touchscreen_RightClick.py", line 62, in remove_fingers self._initiate_right_click() File "Python_Touchscreen_RightClick.py", line 111, in _initiate_right_click with UInput(self.abilities) as ui: File "/usr/lib/python2.7/dist-packages/evdev/uinput.py", line 83, in init _uinput.create(self.fd, name, vendor, product, version, bustype, absinfo) IOError: [Errno 22] Invalid argument

Update: For some unkown reason, uinput doesnt work for my device. Switch to PyMouse=true doesnt work too Fortunately @Gevasiliou's fork work for me However due to bug, in xlib I have to run $xhost + then the script 2 fingers taps is not consistent Hard to stimulate tap at horizontal and vertical edges The position of the context menu is not precisely determined by any finger of the 2 Thanks