Small mouse tap enhancement

This commit is contained in:
pelya
2011-02-11 15:30:48 +00:00
parent d4e45d5298
commit 892c4813b9

View File

@@ -586,7 +586,11 @@ void ProcessDeferredMouseTap()
{
deferredMouseTap--;
if( deferredMouseTap <= 0 )
{
if( oldMouseX + 1 < SDL_ANDROID_sFakeWindowWidth )
SDL_ANDROID_MainThreadPushMouseMotion(oldMouseX + 1, oldMouseY);
SDL_ANDROID_MainThreadPushMouseButton( SDL_RELEASED, SDL_BUTTON_LEFT );
}
else if( oldMouseX > 0 ) // Force application to redraw, and call SDL_Flip()
SDL_ANDROID_MainThreadPushMouseMotion(oldMouseX - 1, oldMouseY);
}