Do not fire right mouse button when lifting fingers, if middle button was pressed

This commit is contained in:
Sergii Pylypenko
2014-10-10 22:24:50 +03:00
parent a0fc6c5ba7
commit fc92bb86d1

View File

@@ -709,7 +709,10 @@ static void ProcessMouseMultitouch( int action, int pointerId )
}
}
if( pointerId != firstMousePointerId && pointerId != secondMousePointerId && (action == MOUSE_DOWN || action == MOUSE_UP) )
{
SDL_ANDROID_MainThreadPushMouseButton( (action == MOUSE_DOWN) ? SDL_PRESSED : SDL_RELEASED, SDL_BUTTON_MIDDLE );
multitouchGestureHappened = 1; // Prevent firing left mouse button when lifting two fingers
}
}
static void ProcessMouseHover( jint *xx, jint *yy, int action, int distance )