Skip to content

Commit

Permalink
schemas: Add mouse and trackball accel profile keys
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jadahl committed Jul 28, 2016
1 parent d9dfe56 commit 9a7e6d3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions headers/gdesktop-enums.h
Expand Up @@ -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__ */
10 changes: 10 additions & 0 deletions schemas/org.gnome.desktop.peripherals.gschema.xml.in
Expand Up @@ -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">
Expand Down Expand Up @@ -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>

0 comments on commit 9a7e6d3

Please sign in to comment.