]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: wacom: Support touchrings with relative motion
authorJason Gerecke <jason.gerecke@wacom.com>
Tue, 30 Jul 2024 15:51:57 +0000 (08:51 -0700)
committerJiri Kosina <jkosina@suse.com>
Fri, 2 Aug 2024 11:02:46 +0000 (13:02 +0200)
commit7525a0bd928e3a5d6dcea6a38cc5ce88f45d27a9
tree4e6e6ddeaada8531bdf63585d1d722dec1fc21c6
parent3152301ff28872255461484b3dc831e2bf0f28db
HID: wacom: Support touchrings with relative motion

If a touchring is configured to send relative events (e.g. +1 or -1 every
time some bit of rotational distance is covered), we should similarly
send relative events up to userspace. Previous non-HID tablets used
REL_WHEEL to send this kind of information, so we opt to use this same
axis since userspace (xf86-input-wacom and libinput) already expects
this kind of behavior from the Wacom kernel driver.

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/wacom_wac.c