Browse Source

build fix on non-SDL platforms

legacy
Benlitz benlitz 11 years ago
parent
commit
cecd5db3fa
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/platform/sdl/sdlinput.cpp

+ 3
- 0
src/platform/sdl/sdlinput.cpp View File

@@ -559,6 +559,7 @@ void SdlInputData::Tick(float seconds)
#endif // USE_SDL
}

// NOTE: these two functions are pointless now and could be inlined directly
ivec2 SdlInputData::GetMousePos()
{
ivec2 ret(-1, -1);
@@ -577,7 +578,9 @@ ivec2 SdlInputData::GetMousePos()

void SdlInputData::SetMousePos(ivec2 position)
{
#if USE_SDL
SDL_WarpMouse((uint16_t)position.x, (uint16_t)position.y);
#endif
}

} /* namespace lol */


Loading…
Cancel
Save