Evidlo / remarkable_mouse

use your reMarkable as a graphics tablet
GNU General Public License v3.0
515 stars 50 forks source link

Assign Lamy button to some other key #61

Open giorgio-arena opened 2 years ago

giorgio-arena commented 2 years ago

Hello and thank you for this amazing piece of software :)

I'm using it on RM2 using evdev to allow me to use the button on my Lamy pen (actually a Samsung Tab S6 pen but it shouldn't matter). The problem I'm experiencing is that since I want to use it for collaborative whiteboarding, some of the platforms available have shortcuts for the rubber tool, but never mapped to the middle mouse as the tool wants. Often times this shortcut can be changed to some other key in the keyboard, but not to the middle mouse.

Is it possible to bind the Lamy button to some other key rather than the middle mouse button? And if so, is there any reference on how to achieve that?

Thanks!

D-a-r-n-o-l-d commented 2 weeks ago

The button support was a massive (and welcome) surprise for me, I'd love to see support for this too!

Evidlo commented 1 week ago

evdev mode just passes all input events on the tablet to a virtual tablet on the host (with coordinate remapping).

You should just use standard Linux tools for doing this remapping as if it were any normal graphics tablet. e.g. I found this after Googling: https://digimend.github.io/support/howto/drivers/evdev/