Skip to content

Commit

Permalink
Android: Fixed not resetting mouse pointer state if hint was changed …
Browse files Browse the repository at this point in the history
…at runtime.
  • Loading branch information
philippwiesemann committed Apr 8, 2015
1 parent a210dbc commit b473d30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/android/SDL_androidtouch.c
Expand Up @@ -136,9 +136,9 @@ void Android_OnTouch(int touch_device_id_in, int pointer_finger_id_in, int actio
/* Primary pointer up */
if (!separate_mouse_and_touch) {
/* send mouse up */
pointerFingerID = (SDL_FingerID) 0;
SDL_SendMouseButton(Android_Window, SDL_TOUCH_MOUSEID, SDL_RELEASED, SDL_BUTTON_LEFT);
}
pointerFingerID = (SDL_FingerID) 0;
case ACTION_POINTER_UP:
/* Non primary pointer up */
SDL_SendTouch(touchDeviceId, fingerId, SDL_FALSE, x, y, p);
Expand Down

0 comments on commit b473d30

Please sign in to comment.