summaryrefslogtreecommitdiff
path: root/src/backends/meta-input-settings-private.h
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2016-06-22 15:58:33 +0200
committerCarlos Garnacho <carlosg@gnome.org>2016-07-22 13:31:09 +0200
commitf9552bb9c0e32d252f3341ff513bccc7bbc6f118 (patch)
treee78754a9f225827f4bac9568d7eed475ab6a3d35 /src/backends/meta-input-settings-private.h
parent7e267e9b0182172e45598b1fd0fb13a28db049e5 (diff)
downloadmutter-f9552bb9c0e32d252f3341ff513bccc7bbc6f118.tar.gz
backends: Add function to apply pressure sensitivity to tablet tools
A bezier curve is created out of the 2 control points in settings, so the pressure is made to follow the stablished curve between 0 and 1.
Diffstat (limited to 'src/backends/meta-input-settings-private.h')
-rw-r--r--src/backends/meta-input-settings-private.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/backends/meta-input-settings-private.h b/src/backends/meta-input-settings-private.h
index 45ce92f53..a9d448e43 100644
--- a/src/backends/meta-input-settings-private.h
+++ b/src/backends/meta-input-settings-private.h
@@ -110,6 +110,11 @@ GDesktopStylusButtonAction meta_input_settings_get_stylus_button_action (MetaInp
ClutterInputDeviceTool *tool,
ClutterInputDevice *current_device,
guint button);
+gdouble meta_input_settings_translate_tablet_tool_pressure (MetaInputSettings *input_settings,
+ ClutterInputDeviceTool *tool,
+ ClutterInputDevice *current_tablet,
+ gdouble pressure);
+
#ifdef HAVE_LIBWACOM
WacomDevice * meta_input_settings_get_tablet_wacom_device (MetaInputSettings *settings,
ClutterInputDevice *device);