diff options
author | marynate <mary.w.nate@gmail.com> | 2014-07-13 15:01:42 +0800 |
---|---|---|
committer | marynate <mary.w.nate@gmail.com> | 2014-07-13 15:03:52 +0800 |
commit | 4c3dffd865cc7b27957f4516f46c5446dc4a6997 (patch) | |
tree | 24cf8cd7c115b6ef41b123f98f62a1380891f6da /platform/iphone | |
parent | 9ff6d55822647c87eef392147ea15641d0922d47 (diff) |
Fixed ios release event not been dispatched when app entering background (only first touch been registered in mouse_list)
Diffstat (limited to 'platform/iphone')
-rw-r--r-- | platform/iphone/os_iphone.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/iphone/os_iphone.cpp b/platform/iphone/os_iphone.cpp index 2ef732183b..ba93df994b 100644 --- a/platform/iphone/os_iphone.cpp +++ b/platform/iphone/os_iphone.cpp @@ -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); }; }; |