From 35568d220c19b53f4b65a9612bbc6e05508c851d Mon Sep 17 00:00:00 2001 From: pelya Date: Wed, 28 Nov 2012 18:44:53 +0200 Subject: [PATCH] Fixed tiny bug in text input --- project/jni/sdl-1.2/src/video/android/SDL_androidinput.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/jni/sdl-1.2/src/video/android/SDL_androidinput.c b/project/jni/sdl-1.2/src/video/android/SDL_androidinput.c index 50d2fa432..1b8fdb8f1 100644 --- a/project/jni/sdl-1.2/src/video/android/SDL_androidinput.c +++ b/project/jni/sdl-1.2/src/video/android/SDL_androidinput.c @@ -1940,7 +1940,8 @@ void SDL_ANDROID_DeferredTextInput() BufferedEventsEnd = nextEvent; SDL_mutexV(BufferedEventsMutex); - SDL_ANDROID_MainThreadPushMouseMotion(currentMouseX + (currentMouseX % 2 ? -1 : 1), currentMouseY); // Force screen redraw + if( isMouseUsed ) + SDL_ANDROID_MainThreadPushMouseMotion(currentMouseX + (currentMouseX % 2 ? -1 : 1), currentMouseY); // Force screen redraw } SDL_mutexV(deferredTextMutex);