Copy point into mouse event as is

This commit is contained in:
BastiaanOlij 2017-08-05 17:31:29 +10:00
parent f79a5c464b
commit 18dc9d1d5a
1 changed files with 3 additions and 5 deletions

View File

@ -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;