From 45fc7dfe871e25c913deb56063ca930dafe8b9ae Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 21 Sep 2013 21:46:17 +0300 Subject: fix compilation and partial running with SDL2 on Android. --- src/gui/gui.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/gui.cpp') diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 2733f75fa..694010f8b 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -769,8 +769,10 @@ void Gui::handleMouseInput() if (touchManager.processEvent(mouseInput)) { #ifdef ANDROID +#ifndef USE_SDL2 SDL_WarpMouse(mLastMouseX, mLastMouseY, mLastMouseRealX, mLastMouseRealY); +#endif #endif mMouseInactivityTimer = 0; continue; -- cgit v1.2.3-60-g2f50