From 9a7e6d334fb7ec45a82aae07a5eb059c5294fe52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Mon, 18 Apr 2016 22:37:12 +0800 Subject: [PATCH] schemas: Add mouse and trackball accel profile keys Add an entry for configuring the acceleration profile for mouse and trackball devices. This is intended to be mapped to the libinput acceleration profile configuration API. https://bugzilla.gnome.org/show_bug.cgi?id=765218 --- headers/gdesktop-enums.h | 6 ++++++ schemas/org.gnome.desktop.peripherals.gschema.xml.in | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/headers/gdesktop-enums.h b/headers/gdesktop-enums.h index da16f27..539a734 100644 --- a/headers/gdesktop-enums.h +++ b/headers/gdesktop-enums.h @@ -207,5 +207,11 @@ typedef enum G_DESKTOP_STYLUS_BUTTON_ACTION_FORWARD } GDesktopStylusButtonAction; +typedef enum +{ + G_DESKTOP_POINTER_ACCEL_PROFILE_DEFAULT, + G_DESKTOP_POINTER_ACCEL_PROFILE_FLAT, + G_DESKTOP_POINTER_ACCEL_PROFILE_ADAPTIVE +} GDesktopPointerAccelProfile; #endif /* __gdesktop_enums_h__ */ diff --git a/schemas/org.gnome.desktop.peripherals.gschema.xml.in b/schemas/org.gnome.desktop.peripherals.gschema.xml.in index 6a963d1..31bea67 100644 --- a/schemas/org.gnome.desktop.peripherals.gschema.xml.in +++ b/schemas/org.gnome.desktop.peripherals.gschema.xml.in @@ -84,6 +84,11 @@ Natural scrolling Set this to TRUE to enable natural (reverse) scrolling for mice. + + 'default' + Acceleration profile + Acceleration profile used for connected mice. The acceleration profile can be set to either default ('default') which uses the default acceleration profile for each device, flat ('flat'), which accelerates by a device specific constant factor derived from the configured pointer speed, or adaptive ('adaptive') which adapts the acceleration depending on the mouse movement. If a mouse doesn't support the configured profile, 'default' will be used. + @@ -159,5 +164,10 @@ Mouse wheel emulation button. 0 to disable the feature. + + 'default' + Acceleration profile + Acceleration profile used for the trackball. The acceleration profile can be set to either default ('default') which uses the default acceleration profile, flat ('flat'), which accelerates by a device specific constant factor derived from the configured speed, or adaptive ('adaptive') which adapts the acceleration depending on the movement. If the trackball doesn't support the configured profile, 'default' will be used. +