From 6560ba73dc37ec4e74dd9733b1a2f0950a3eb077 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Tue, 22 Jun 2010 14:21:52 +0000 Subject: [PATCH] - changed show cursor code since it was not easily allowing you to cursour out of the SDL window --- .../shared_lib/sources/platform/common/platform_common.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/shared_lib/sources/platform/common/platform_common.cpp b/source/shared_lib/sources/platform/common/platform_common.cpp index d84e20c5a..f59568c49 100644 --- a/source/shared_lib/sources/platform/common/platform_common.cpp +++ b/source/shared_lib/sources/platform/common/platform_common.cpp @@ -780,11 +780,12 @@ void sleep(int millis) { void showCursor(bool b) { int x,y; if(b) { - SDL_GetMouseState( &x, &y ); + //SDL_GetMouseState( &x, &y ); } SDL_ShowCursor(b ? SDL_ENABLE : SDL_DISABLE); if(b) { - SDL_WarpMouse(x,y); + SDL_WM_GrabInput(SDL_GRAB_OFF); + //SDL_WarpMouse(x,y); } }