Merge pull request #590 from marynate/PR-fix-ios-release-event

Fixed ios release event not been dispatched when app entering background
This commit is contained in:
punto- 2015-12-11 21:30:02 -03:00
commit 25d19e08bb

View File

@ -226,6 +226,8 @@ void OSIPhone::mouse_button(int p_idx, int p_x, int p_y, bool p_pressed, bool p_
queue_event(ev);
};
mouse_list.pressed[p_idx] = p_pressed;
if (p_use_as_mouse) {
InputEvent ev;
@ -245,8 +247,6 @@ void OSIPhone::mouse_button(int p_idx, int p_x, int p_y, bool p_pressed, bool p_
ev.mouse_button.doubleclick = p_doubleclick;
ev.mouse_button.pressed = p_pressed;
mouse_list.pressed[p_idx] = p_pressed;
queue_event(ev);
};
};