fingerpaint
fingerpaint copied to clipboard
Only bottom left quarter of touchpad is used
If I divide my touchpad to four equal parts, fingerpaint only uses the bottom left one. Any input in the rest of the pad is out of the canvas.
For example, I drew a circle in the middle of the pad, and this is the output:
Specs:
- OS: Ubuntu 23.04 Lunar Lobster (wayland)
- Laptop: Lenovo B570e
-
Using touchpad: ETPS/2 Elantech Touchpad
-
evtest
output while drawing the circle (its not the same circle): https://pastebin.com/TeFVgShR
For a workaround, I changed the following lines: https://github.com/Wazzaps/fingerpaint/blob/b71b04627b8842282d43e2f60bc476e2971a2e49/fingerpaint/fingerpaint.py#L192-L195 To this:
if event.code == evdev.ecodes.ABS_X:
wip_pos = ((event.value - x_absinfo.min) / 2 / (x_absinfo.max - x_absinfo.min), wip_pos[1])
if event.code == evdev.ecodes.ABS_Y:
wip_pos = (wip_pos[0], ((event.value + y_absinfo.max) / (2*y_absinfo.max - y_absinfo.min)))
Which allowed me to use the entire touchpad. Obviously this will not work for other touchpads.