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:
commit
25d19e08bb
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue