diff options
Diffstat (limited to 'Source/Support.cpp')
| -rw-r--r-- | Source/Support.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Support.cpp b/Source/Support.cpp index abfa176..5038d50 100644 --- a/Source/Support.cpp +++ b/Source/Support.cpp @@ -51,9 +51,11 @@ void InitMouse() void MoveMouse(int xcoord, int ycoord, Point *mouseloc) { - /* mouse warp is annoying when we can just grab the mouse */ -// SDL_WarpMouse(xcoord, ycoord); -// SDL_PumpEvents(); + /* TODO: mouse warp is annoying when we can just grab the mouse */ +#ifdef FULLSCREEN + SDL_WarpMouse(xcoord, ycoord); + SDL_PumpEvents(); +#endif GetMouse(mouseloc); } |
