]> 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)
commit0910ca76191e6424556ae78a0b0de2c2a77363dd
tree392d2ac2d52460ded23371dbdde92866bf300bc4
parentac7b9414cb09ce31e74173918a7bb9b04dde9a5f
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 a7dc850f27cf ("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