mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-02-03 10:21:04 +00:00
Android: Fixed not resetting mouse pointer state if hint was changed at runtime.
This commit is contained in:
parent
a210dbcb13
commit
b473d30f19
|
@ -136,9 +136,9 @@ void Android_OnTouch(int touch_device_id_in, int pointer_finger_id_in, int actio
|
||||||
/* Primary pointer up */
|
/* Primary pointer up */
|
||||||
if (!separate_mouse_and_touch) {
|
if (!separate_mouse_and_touch) {
|
||||||
/* send mouse up */
|
/* send mouse up */
|
||||||
pointerFingerID = (SDL_FingerID) 0;
|
|
||||||
SDL_SendMouseButton(Android_Window, SDL_TOUCH_MOUSEID, SDL_RELEASED, SDL_BUTTON_LEFT);
|
SDL_SendMouseButton(Android_Window, SDL_TOUCH_MOUSEID, SDL_RELEASED, SDL_BUTTON_LEFT);
|
||||||
}
|
}
|
||||||
|
pointerFingerID = (SDL_FingerID) 0;
|
||||||
case ACTION_POINTER_UP:
|
case ACTION_POINTER_UP:
|
||||||
/* Non primary pointer up */
|
/* Non primary pointer up */
|
||||||
SDL_SendTouch(touchDeviceId, fingerId, SDL_FALSE, x, y, p);
|
SDL_SendTouch(touchDeviceId, fingerId, SDL_FALSE, x, y, p);
|
||||||
|
|
Loading…
Reference in a new issue