diff options
| author | relnev <relnev@5198baeb-e213-0410-be47-fc2ff85ca46f> | 2003-01-09 07:43:13 +0000 |
|---|---|---|
| committer | relnev <relnev@5198baeb-e213-0410-be47-fc2ff85ca46f> | 2003-01-09 07:43:13 +0000 |
| commit | 0a7d978a795afe567ba7581aba8b03de1f0cad70 (patch) | |
| tree | b6fc35bf89d3ae6c5c36f6ce798d1693356f2ca8 /Source/Support.cpp | |
| parent | 4b5414094216c689e42787951ae6e2513a940ab8 (diff) | |
| download | blackshades-0a7d978a795afe567ba7581aba8b03de1f0cad70.tar.gz | |
warp the stupid mouse
git-svn-id: svn://svn.icculus.org/blackshades/trunk@68 5198baeb-e213-0410-be47-fc2ff85ca46f
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); } |
