summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpunto- <ariel@okamstudio.com>2015-12-11 21:30:02 -0300
committerpunto- <ariel@okamstudio.com>2015-12-11 21:30:02 -0300
commit25d19e08bb8fe409920a06429f531895d081e1f7 (patch)
tree306e1caaba0e7c4947852fb38540a2358eb6cdad
parent6221570f53db8b8dddb0ce481dcf405c87d4730e (diff)
parent4c3dffd865cc7b27957f4516f46c5446dc4a6997 (diff)
Merge pull request #590 from marynate/PR-fix-ios-release-event
Fixed ios release event not been dispatched when app entering background
-rw-r--r--platform/iphone/os_iphone.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/iphone/os_iphone.cpp b/platform/iphone/os_iphone.cpp
index 93f4d00e05..3db5e1d215 100644
--- a/platform/iphone/os_iphone.cpp
+++ b/platform/iphone/os_iphone.cpp
@@ -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);
};
};