shithub: rott

Download patch

ref: 69f062a7028f072a24712cf3034f208677cd7079
parent: d181d80c7da8a80efc6b8f21ed288876077e1b75
author: Jacob Moody <moody@posixcafe.org>
date: Sun Feb 12 15:35:18 EST 2023

renable mouse grab

--- a/src/modexlib.c
+++ b/src/modexlib.c
@@ -122,7 +122,7 @@
     }
     
     
-    //SDL_SetRelativeMouseMode(SDL_TRUE);
+    SDL_SetRelativeMouseMode(SDL_TRUE);
     SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "nearest");
     if (sdl_fullscreen)
         flags = SDL_WINDOW_FULLSCREEN_DESKTOP;
--- a/src/rt_main.c
+++ b/src/rt_main.c
@@ -336,7 +336,7 @@
     
     if (mouseenabled)
     {
-        //SDL_SetRelativeMouseMode(SDL_TRUE);
+        SDL_SetRelativeMouseMode(SDL_TRUE);
     }
 
 //   SetTextMode();