From ee36574c01691dcc23f1e0ff354850fbdbbd89b6 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Wed, 19 Jan 2011 20:33:25 +0000 Subject: [PATCH] Pieces can now be grabbed around. --- src/sdlinput.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sdlinput.cpp b/src/sdlinput.cpp index e3c7ab29..9f6aa9c3 100644 --- a/src/sdlinput.cpp +++ b/src/sdlinput.cpp @@ -50,7 +50,10 @@ void SdlInput::TickGame(float deltams) /* Handle mouse input */ Int2 mouse; if (SDL_GetAppState() & SDL_APPMOUSEFOCUS) + { SDL_GetMouseState(&mouse.x, &mouse.y); + mouse.y = Video::GetHeight() - 1 - mouse.y; + } else mouse.x = mouse.y = -1; Input::SetMousePos(mouse);