Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • L libinput
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 141
    • Issues 141
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • libinput
  • libinput
  • Merge requests
  • !775

Draft: introduce custom acceleration profile

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Yinon Burgansky requested to merge Yinon/libinput:custom-acceleration into main May 22, 2022
  • Overview 84
  • Commits 1
  • Pipelines 11
  • Changes 19

introduce a custom acceleration profile (closes #350).

see docs for more details.

based on merge request !297 (closed) with a few key changes:

The points are space evenly along the x-axis starting from 0 in regular jumps of delta-x,
allowing access to them in O(1) instead of O(n).
thus supporting granular control for even 'crazy' transfer functions.
currently the limit is 10k points (arbitrary).

can be tested using:

sudo ./builddir/libinput-debug-gui --verbose \
    --set-profile=custom \
    --set-custom-points=1.0,1.0 \
    --set-custom-step=1.0 \
    --set-custom-type=1

(a flat profile)

You can try creating points from windows acceleration function
(I can't guarantee the calculation is current).

Edited Jun 10, 2022 by Yinon Burgansky
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: custom-acceleration