diff options
author | santiagopf <punto@Ariels-Mac-mini.local> | 2015-12-13 01:28:42 -0300 |
---|---|---|
committer | santiagopf <punto@Ariels-Mac-mini.local> | 2015-12-13 01:28:42 -0300 |
commit | 01f063e2fea23a7156e2748e0ac3f950008966cc (patch) | |
tree | 4ea30d4bf1d53544f437d0f621239e8545682e58 /platform | |
parent | d6f9426748365bb318523d74038f388b3e400019 (diff) |
reverted mouse stuff
t Please enter the commit message for your changes. Lines starting
Diffstat (limited to 'platform')
-rw-r--r-- | platform/iphone/os_iphone.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/iphone/os_iphone.cpp b/platform/iphone/os_iphone.cpp index 3db5e1d215..bf2864e7ca 100644 --- a/platform/iphone/os_iphone.cpp +++ b/platform/iphone/os_iphone.cpp @@ -226,7 +226,7 @@ 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; + //mouse_list.pressed[p_idx] = p_pressed; if (p_use_as_mouse) { @@ -242,6 +242,8 @@ void OSIPhone::mouse_button(int p_idx, int p_x, int p_y, bool p_pressed, bool p_ ev.mouse_button.x = ev.mouse_button.global_x = p_x; ev.mouse_button.y = ev.mouse_button.global_y = p_y; + mouse_list.pressed[p_idx] = p_pressed; + input->set_mouse_pos(Point2(ev.mouse_motion.x,ev.mouse_motion.y)); ev.mouse_button.button_index = BUTTON_LEFT; ev.mouse_button.doubleclick = p_doubleclick; |