mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-16 09:21:12 +00:00
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:
parent
843689f8a0
commit
9c16dc7873
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue