]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: support named keys on older devices
authorAaron Armstrong Skomra <skomra@gmail.com>
Fri, 16 Aug 2019 19:02:50 +0000 (12:02 -0700)
committerJiri Kosina <jkosina@suse.cz>
Tue, 20 Aug 2019 14:59:05 +0000 (16:59 +0200)
commita24303e2591d8095654c694b28284eaae64edf29
tree392d2ac2d52460ded23371dbdde92866bf300bc4
parentd2a3130cdea29425efab157eb5ef4f95cf61e124
HID: wacom: support named keys on older devices

Some Wacom devices have keys with predefined meanings. However, when
support was originally added for these devices, the codes for these
keys were not available yet. These keys were thus reported with
the numbered KEY_PROG* range.

Some missing key codes were added with commit 612b71f66cf1 ("HID:
wacom: generic: add 3 tablet touch keys") and we are now able to
report the proper key codes. We continue to report the original
KEY_PROG codes so as not to break any unknown applications that
may depend on them.

Also, to support the touch key, track its state in the pad report.

Signed-off-by: Aaron Armstrong Skomra <aaron.skomra@wacom.com>
Link: https://gitlab.freedesktop.org/libinput/libinput/merge_requests/155
Link: https://github.com/linuxwacom/xf86-input-wacom/pull/46
Reviewed-by: Ping Cheng <ping.cheng@wacom.com>
Reviewed-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c