Support tablet pad keys
cc @jigpu, @bentiss, @carlosg, @jadahl
Some of the Wacom Cintiqs provide keyboard-like buttons KEY_CONTROLPANEL
, KEY_ONSCREEN_KEYBOARD
, and KEY_BUTTONCONFIG
. They are buttons on the physical device, mapped to specific functions and labelled, see the Cintiq Pro 24. libinput currently ignores them.
This MR adds a new LIBINPUT_EVENT_TABLET_PAD_KEY
event and the associated functions. The existing LIBINPUT_EVENT_TABLET_PAD_BUTTON
isn't suitable, buttons are sequentially numbered but for these keys it matters what the keycode is.
The assumption is that the caller (e.g. mutter) either passes those on as key events to the client or launches the associated functionality directly.
Note that older tablets also send KEY_PROG*
but that's obsolete as of 5.4 where these tablets now send the named keys as well and we can ignore KEY_PROG*
.
Fixes #223 (closed)