Skip to content

xinput2: correct horizontal touchpad scrolling direction#15381

Merged
Kontrabant merged 1 commit intolibsdl-org:mainfrom
david-vanderson:SDL3
Apr 13, 2026
Merged

xinput2: correct horizontal touchpad scrolling direction#15381
Kontrabant merged 1 commit intolibsdl-org:mainfrom
david-vanderson:SDL3

Conversation

@david-vanderson
Copy link
Copy Markdown
Contributor

Description

Discovered during https://github.com/david-vanderson/dvui testing that horizontal touchpad scrolling direction was reversed in SDL3 (SDL2 is okay) when using xinput2.

Reproduced in the testmouse test. Currently when my two fingers move left on the touchpad the green line moves to the right.

Existing Issue(s)

None that I could find.

This fixes testmouse so when fingers move left the green line moves
left.
@Kontrabant Kontrabant merged commit 5e0f721 into libsdl-org:main Apr 13, 2026
45 checks passed
@Kontrabant
Copy link
Copy Markdown
Contributor

Merged, thanks!

@Kontrabant
Copy link
Copy Markdown
Contributor

Cherry-picked to 3.4.x as well.

@david-vanderson
Copy link
Copy Markdown
Contributor Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants