input: add tablet stylus button triggers and binds#3745
Conversation
YaLTeR
left a comment
There was a problem hiding this comment.
Here are some comments. Maybe there's a chance this can make it into the release. :)
Thanks for the link to linux uapi include btw, that was helpful to double-check.
|
could be relevant but I don't have the hardware to test it Pad keys (Wacom M Pad)
upper column is 0,1,2,3 there is a touch ring around the center button is pad buttons are almost standerd for wacom devices but it varies, some other companies just send keyboard or mouse events instead, drivers/hid/wacom_wac.c |
|
I just tested this on my Wacom Intuos Pro (PTH-451) and both stylus button bindings work as expected. My tablet also does only have two buttons on the stylus, so I was not able to try I also tried implementing bindings for the other keys on the tablet, based on the key codes above. However, I could not get these to trigger. I am not very familiar with rust, so I may have missed something. My attempt is published as a fork of this PR's branch in case anyone would like to take a look. |
|
yeah I checked your fork, I don't think this is the way to implement it, because you are treating the pad buttons as if they were stylus buttons, after reconsidering, I guess this is out of the scope of this pr, I don't have a tablet with pad buttons to test it, but I will try to implement it and message you on element x for testing? |
|
pad button support is not yet implemented in Smithay Related: |

Add support for tablet stylus button bindings
Example
Notes
I did test with Wacom CTL-472, but it should work on all tablets
Button codes are
BTN_STYLUS,BTN_STYLUS2include/uapi/linux/input-event-codes.hlines 414-L415 as of4bdb6a1659873dfc625ded30a68cb387e328f34e