From 35404be1e04f0a8e8dbf5c723bd3e49f0221bef1 Mon Sep 17 00:00:00 2001
From: Alam Ed Arias <alam@srb2.org>
Date: Mon, 7 Aug 2017 16:37:03 -0400
Subject: [PATCH] SDL: y input is flipped

---
 src/sdl/i_video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c
index 1f1fd8a118..2d6698cc80 100644
--- a/src/sdl/i_video.c
+++ b/src/sdl/i_video.c
@@ -624,7 +624,7 @@ static void Impl_HandleMouseMotionEvent(SDL_MouseMotionEvent evt)
 		if (SDL_GetRelativeMouseMode())
 		{
 			event.data2 = evt.xrel;
-			event.data3 = evt.yrel;
+			event.data3 = -evt.yrel;
 		}
 		else if ((evt.x == realwidth/2) && (evt.y == realheight/2))
 		{
-- 
GitLab