fingerpaint icon indicating copy to clipboard operation
fingerpaint copied to clipboard

Only bottom left quarter of touchpad is used

Open Mammad900 opened this issue 1 year ago • 1 comments

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: test

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

Mammad900 avatar Aug 07 '23 16:08 Mammad900

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.

Mammad900 avatar Aug 07 '23 17:08 Mammad900