From cecd5db3fa5c2e3dac0b954a6c70b6adef6a466b Mon Sep 17 00:00:00 2001 From: Benlitz Date: Tue, 23 Jul 2013 15:56:06 +0000 Subject: [PATCH] build fix on non-SDL platforms --- src/platform/sdl/sdlinput.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/platform/sdl/sdlinput.cpp b/src/platform/sdl/sdlinput.cpp index 54378ebd..4ea22d30 100644 --- a/src/platform/sdl/sdlinput.cpp +++ b/src/platform/sdl/sdlinput.cpp @@ -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 */