Fixed ios release event not been dispatched when app entering background (only first touch been registered in mouse_list)

This commit is contained in:
marynate 2014-07-13 15:01:42 +08:00
parent 9ff6d55822
commit 4c3dffd865
1 changed files with 2 additions and 2 deletions

View File

@ -220,6 +220,8 @@ void OSIPhone::mouse_button(int p_idx, int p_x, int p_y, bool p_pressed, bool p_
ev.screen_touch.y=p_y;
queue_event(ev);
mouse_list.pressed[p_idx] = p_pressed;
if (p_use_as_mouse) {
InputEvent ev;
@ -238,8 +240,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);
};
};