mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 18:15:35 +00:00
Fix horizontal wheel scroll direction of X11.
This commit is contained in:
parent
8796f35e0f
commit
515b7e93b5
|
@ -1228,7 +1228,7 @@ X11_DispatchEvent(_THIS, XEvent *xevent)
|
||||||
printf("window %p: ButtonPress (X11 button = %d)\n", data, xevent->xbutton.button);
|
printf("window %p: ButtonPress (X11 button = %d)\n", data, xevent->xbutton.button);
|
||||||
#endif
|
#endif
|
||||||
if (X11_IsWheelEvent(display,xevent,&xticks, &yticks)) {
|
if (X11_IsWheelEvent(display,xevent,&xticks, &yticks)) {
|
||||||
SDL_SendMouseWheel(data->window, 0, (float) xticks, (float) yticks, SDL_MOUSEWHEEL_NORMAL);
|
SDL_SendMouseWheel(data->window, 0, (float) -xticks, (float) yticks, SDL_MOUSEWHEEL_NORMAL);
|
||||||
} else {
|
} else {
|
||||||
SDL_bool ignore_click = SDL_FALSE;
|
SDL_bool ignore_click = SDL_FALSE;
|
||||||
int button = xevent->xbutton.button;
|
int button = xevent->xbutton.button;
|
||||||
|
|
Loading…
Reference in a new issue