You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have a Linux laptop whose mouse is a "SynPS/2 Synaptics TouchPad".
In case SDL_VIDEODRVER=wayland is set, I observe event->wheel.x values inverse to what they should be.
I don't know if this is a general issue or specific to my system. (The current behavior was decided/tested here: 1fa4bcc#2763)
Tested SDL version: commit 1f32dd8 # Sun Jan 9 06:36:18 2022 -0800
Test procedure:
mkdir build-sdl
cd build-sdl
cmake -DSDL_TEST:ON ../SDL
make -j
SDL_VIDEODRIVER=x11 ./test/testgesture --info event
SDL_VIDEODRIVER=wayland ./test/testgesture --info event
Test results (marked with driver and scroll direction):
[x11 L] INFO: SDL EVENT: Mouse: wheel scrolled -1 in x and 0 in y (reversed: 0) in window 2
[x11 R] INFO: SDL EVENT: Mouse: wheel scrolled 1 in x and 0 in y (reversed: 0) in window 2
[x11 D] INFO: SDL EVENT: Mouse: wheel scrolled 0 in x and -1 in y (reversed: 0) in window 2
[x11 U] INFO: SDL EVENT: Mouse: wheel scrolled 0 in x and 1 in y (reversed: 0) in window 2
[wayland L] INFO: SDL EVENT: Mouse: wheel scrolled 1 in x and 0 in y (reversed: 0) in window 1
[wayland R] INFO: SDL EVENT: Mouse: wheel scrolled -1 in x and 0 in y (reversed: 0) in window 1
[wayland D] INFO: SDL EVENT: Mouse: wheel scrolled 0 in x and -1 in y (reversed: 0) in window 1
[wayland U] INFO: SDL EVENT: Mouse: wheel scrolled 0 in x and 1 in y (reversed: 0) in window 1
The text was updated successfully, but these errors were encountered:
Does seem like it should be inverted but I don't have any horizontal wheel hardware to check. If a maintainer has such hardware and wants to sneak this into 2.0.20 this one's all yours, otherwise it can wait another cycle...
This reproduces on a basic laptop touchpad for me. Two fingers to the left is negative in x11 and positive in Wayland here (and opposite to the right, of course).
Hi, I have a Linux laptop whose mouse is a "SynPS/2 Synaptics TouchPad".
In case
SDL_VIDEODRVER=wayland
is set, I observe event->wheel.x values inverse to what they should be.I don't know if this is a general issue or specific to my system. (The current behavior was decided/tested here: 1fa4bcc #2763)
Tested SDL version: commit 1f32dd8 # Sun Jan 9 06:36:18 2022 -0800
Test procedure:
mkdir build-sdl cd build-sdl cmake -DSDL_TEST:ON ../SDL make -j SDL_VIDEODRIVER=x11 ./test/testgesture --info event SDL_VIDEODRIVER=wayland ./test/testgesture --info event
Test results (marked with driver and scroll direction):
The text was updated successfully, but these errors were encountered: