mirror of
https://github.com/godotengine/godot.git
synced 2024-11-26 22:23:04 +00:00
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
@ -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 New Issue
Block a user