kurikaesu / userspace-tablet-driver-daemon

Linux device drivers for non-wacom (XP-Pen, Huion, Gaomon) graphics tablets and pen displays
GNU General Public License v3.0
65 stars 16 forks source link

Eraser support #62

Closed ThatOneCalculator closed 2 years ago

ThatOneCalculator commented 2 years ago

Closes #60

ThatOneCalculator commented 2 years ago

Works as expected!

The flashing eraser icon (top left) might be a tiny bit of a problem but it doesn't affect it functionally

https://user-images.githubusercontent.com/44733677/189511437-c31311c4-dfa1-4f3c-a479-4af6bed7a3ed.mp4

kurikaesu commented 2 years ago

Thanks for trying to fix this. The eraser flashing is definitely a problem. It means the E key is being spammed. Not ideal as on slower computers it could lead to inconsistent eraser strokes.

What should probably happen and this needs testing is: detect when the eraser end of the pen is in proximity and send a keybind when entering and exiting proximity.

The keybinding would need to be customizable.

You will need to have the driver dump out the usb messages to see what it sends when entering and exiting proximity of the digitizer with the eraser end vs pen end.

My clean up commit shows how to get the usb debug messages back.

ThatOneCalculator commented 2 years ago

I'll work on that. As for customisability, I already made a PR on the GUI repo to add it :)