Explorar el Código

build fix on non-SDL platforms

legacy
Benlitz benlitz hace 12 años
padre
commit
cecd5db3fa
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. +3
    -0
      src/platform/sdl/sdlinput.cpp

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

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


Cargando…
Cancelar
Guardar