Skip to content
Snippets Groups Projects
Commit 35404be1 authored by Alam Ed Arias's avatar Alam Ed Arias
Browse files

SDL: y input is flipped

parent c25b2eb3
No related branches found
No related tags found
2 merge requests!252OpenGL: Public flatsprite: The Fixening,!206SDL2: Relative mouse mode
...@@ -624,7 +624,7 @@ static void Impl_HandleMouseMotionEvent(SDL_MouseMotionEvent evt) ...@@ -624,7 +624,7 @@ static void Impl_HandleMouseMotionEvent(SDL_MouseMotionEvent evt)
if (SDL_GetRelativeMouseMode()) if (SDL_GetRelativeMouseMode())
{ {
event.data2 = evt.xrel; event.data2 = evt.xrel;
event.data3 = evt.yrel; event.data3 = -evt.yrel;
} }
else if ((evt.x == realwidth/2) && (evt.y == realheight/2)) else if ((evt.x == realwidth/2) && (evt.y == realheight/2))
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment