diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-08-07 14:50:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-07 14:50:47 +0200 |
commit | 19231aa80fce8141f2c6c7f699b050663d8f391f (patch) | |
tree | a00dc8901a380ebf25293262f92d0452c74e9e55 /platform | |
parent | 6d213909cb516207304900575ab5c2d9b79e4b20 (diff) | |
parent | 18dc9d1d5a06b9eddde0113b6ee15badce6fc4ec (diff) |
Merge pull request #10106 from BastiaanOlij/ios_fix_buttons
iOS copy touch coordinate as is
Diffstat (limited to 'platform')
-rw-r--r-- | platform/iphone/os_iphone.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/platform/iphone/os_iphone.cpp b/platform/iphone/os_iphone.cpp index cb5c022764..ae1d09ecda 100644 --- a/platform/iphone/os_iphone.cpp +++ b/platform/iphone/os_iphone.cpp @@ -224,11 +224,9 @@ void OSIPhone::mouse_button(int p_idx, int p_x, int p_y, bool p_pressed, bool p_ Ref<InputEventMouseButton> ev; ev.instance(); - // swaped it for tilted screen - //ev->get_pos().x = ev.mouse_button.global_x = video_mode.height - p_y; - //ev->get_pos().y = ev.mouse_button.global_y = p_x; - ev->set_position(Vector2(video_mode.height - p_y, p_x)); - ev->set_global_position(Vector2(video_mode.height - p_y, p_x)); + + ev->set_position(Vector2(p_x, p_y)); + ev->set_global_position(Vector2(p_x, p_y)); //mouse_list.pressed[p_idx] = p_pressed; |