From 9c16dc787388d2bdf6883c26097d90f9b9c79a5f Mon Sep 17 00:00:00 2001 From: helixhorned Date: Tue, 6 Sep 2011 17:46:50 +0000 Subject: [PATCH] sdlayer.c: also SDL_WarpMouse() in debugging builds. This has at least three effects: 1) Mouse turning works with SDL 1.3 2) The mouse pointer can't leave the window area with the console up, so that focus always stays with the application 3) Menu selection using the mouse doesn't work. Not dramatic IMO. git-svn-id: https://svn.eduke32.com/eduke32@2011 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/sdlayer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/build/src/sdlayer.c b/polymer/eduke32/build/src/sdlayer.c index 2dda88887..837422fe6 100644 --- a/polymer/eduke32/build/src/sdlayer.c +++ b/polymer/eduke32/build/src/sdlayer.c @@ -1715,7 +1715,7 @@ int32_t handleevents(void) rv=-1; } break; -#endif +#endif // SDL version case SDL_MOUSEBUTTONDOWN: case SDL_MOUSEBUTTONUP: @@ -1766,9 +1766,9 @@ int32_t handleevents(void) mousex += ev.motion.xrel; mousey += ev.motion.yrel; -#ifndef DEBUGGINGAIDS +//#ifndef DEBUGGINGAIDS SDL_WarpMouse(xdim>>1, ydim>>1); -#endif +//#endif } break;