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
This commit is contained in:
helixhorned 2011-09-06 17:46:50 +00:00
parent 843689f8a0
commit 9c16dc7873

View file

@ -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;