[gsettings-desktop-schemas] schemas: Add mouse and trackball accel profile keys
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gsettings-desktop-schemas] schemas: Add mouse and trackball accel profile keys
- Date: Thu, 28 Jul 2016 07:21:43 +0000 (UTC)
commit 9a7e6d334fb7ec45a82aae07a5eb059c5294fe52
Author: Jonas Ådahl <jadahl gmail com>
Date: Mon Apr 18 22:37:12 2016 +0800
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 ++++++
.../org.gnome.desktop.peripherals.gschema.xml.in | 10 ++++++++++
2 files changed, 16 insertions(+), 0 deletions(-)
---
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 @@
<summary>Natural scrolling</summary>
<description>Set this to TRUE to enable natural (reverse) scrolling for mice.</description>
</key>
+ <key name="accel-profile" enum="org.gnome.desktop.GDesktopPointerAccelProfile">
+ <default>'default'</default>
+ <summary>Acceleration profile</summary>
+ <description>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.</description>
+ </key>
</schema>
<schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.desktop.peripherals.tablet">
<key name="display" type="as">
@@ -159,5 +164,10 @@
<range min="0" max="24"/>
<summary>Mouse wheel emulation button. 0 to disable the feature.</summary>
</key>
+ <key name="accel-profile" enum="org.gnome.desktop.GDesktopPointerAccelProfile">
+ <default>'default'</default>
+ <summary>Acceleration profile</summary>
+ <description>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.</description>
+ </key>
</schema>
</schemalist>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]