Browse Source

Pieces can now be grabbed around.

legacy
Sam Hocevar sam 14 years ago
parent
commit
ee36574c01
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/sdlinput.cpp

+ 3
- 0
src/sdlinput.cpp View File

@@ -50,7 +50,10 @@ void SdlInput::TickGame(float deltams)
/* Handle mouse input */ /* Handle mouse input */
Int2 mouse; Int2 mouse;
if (SDL_GetAppState() & SDL_APPMOUSEFOCUS) if (SDL_GetAppState() & SDL_APPMOUSEFOCUS)
{
SDL_GetMouseState(&mouse.x, &mouse.y); SDL_GetMouseState(&mouse.x, &mouse.y);
mouse.y = Video::GetHeight() - 1 - mouse.y;
}
else else
mouse.x = mouse.y = -1; mouse.x = mouse.y = -1;
Input::SetMousePos(mouse); Input::SetMousePos(mouse);


Loading…
Cancel
Save