Ver código fonte

build fix on non-SDL platforms

legacy
Benlitz benlitz 11 anos atrás
pai
commit
cecd5db3fa
1 arquivos alterados com 3 adições e 0 exclusões
  1. +3
    -0
      src/platform/sdl/sdlinput.cpp

+ 3
- 0
src/platform/sdl/sdlinput.cpp Ver arquivo

@@ -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 */


Carregando…
Cancelar
Salvar