diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2016-05-13 13:20:07 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2016-07-22 13:31:09 +0200 |
commit | 77b33a86b804a6b4fc13bc8ea886cd1d4a4c1a0d (patch) | |
tree | da88b86d33dc0395a21ea6cdb6df7d87b15cefee /src/backends/meta-input-settings-private.h | |
parent | f3b94d9a78d1412abf72a8ee9c895fe303f1ff7f (diff) | |
download | mutter-77b33a86b804a6b4fc13bc8ea886cd1d4a4c1a0d.tar.gz |
backends: Fetch libwacom information for tablets in MetaInputSettings
Given that information defines largely how such devices are to be
configured, it makes sense to have that information at hand. A getter
has been also added for the places where it could be useful, although
it will require HAVE_LIBWACOM checks in callers too.
Diffstat (limited to 'src/backends/meta-input-settings-private.h')
-rw-r--r-- | src/backends/meta-input-settings-private.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/backends/meta-input-settings-private.h b/src/backends/meta-input-settings-private.h index a7e6ea095..1b3e13fde 100644 --- a/src/backends/meta-input-settings-private.h +++ b/src/backends/meta-input-settings-private.h @@ -27,6 +27,10 @@ #include <clutter/clutter.h> +#ifdef HAVE_LIBWACOM +#include <libwacom/libwacom.h> +#endif + #define META_TYPE_INPUT_SETTINGS (meta_input_settings_get_type ()) #define META_INPUT_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), META_TYPE_INPUT_SETTINGS, MetaInputSettings)) #define META_INPUT_SETTINGS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), META_TYPE_INPUT_SETTINGS, MetaInputSettingsClass)) @@ -102,4 +106,9 @@ MetaInputSettings * meta_input_settings_create (void); GDesktopTabletMapping meta_input_settings_get_tablet_mapping (MetaInputSettings *settings, ClutterInputDevice *device); +#ifdef HAVE_LIBWACOM +WacomDevice * meta_input_settings_get_tablet_wacom_device (MetaInputSettings *settings, + ClutterInputDevice *device); +#endif + #endif /* META_INPUT_SETTINGS_PRIVATE_H */ |