backends: Add support for Wacom stylus tertiary-button-action

The tertiary-button-action (see bug 790028) is a place for g-c-c to store
the action which should be performed when a stylus' third button is pressed.
Pressing this button is signaled as a BTN_STYLUS3 event from the kernel or
X11 button 8.

https://bugzilla.gnome.org/show_bug.cgi?id=790033
This commit is contained in:
Jason Gerecke
2017-10-10 08:55:41 -07:00
committed by Carlos Garnacho
parent 91df801ffb
commit f8f1bcfa9e
4 changed files with 17 additions and 6 deletions

View File

@ -111,7 +111,8 @@ struct _MetaInputSettingsClass
ClutterInputDevice *device,
ClutterInputDeviceTool *tool,
GDesktopStylusButtonAction primary,
GDesktopStylusButtonAction secondary);
GDesktopStylusButtonAction secondary,
GDesktopStylusButtonAction tertiary);
gboolean (* has_two_finger_scroll) (MetaInputSettings *settings,
ClutterInputDevice *device);
};