reverted mouse stuff
t Please enter the commit message for your changes. Lines starting
This commit is contained in:
parent
d6f9426748
commit
01f063e2fe
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
queue_event(ev);
|
||||||
};
|
};
|
||||||
|
|
||||||
mouse_list.pressed[p_idx] = p_pressed;
|
//mouse_list.pressed[p_idx] = p_pressed;
|
||||||
|
|
||||||
if (p_use_as_mouse) {
|
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.x = ev.mouse_button.global_x = p_x;
|
||||||
ev.mouse_button.y = ev.mouse_button.global_y = p_y;
|
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));
|
input->set_mouse_pos(Point2(ev.mouse_motion.x,ev.mouse_motion.y));
|
||||||
ev.mouse_button.button_index = BUTTON_LEFT;
|
ev.mouse_button.button_index = BUTTON_LEFT;
|
||||||
ev.mouse_button.doubleclick = p_doubleclick;
|
ev.mouse_button.doubleclick = p_doubleclick;
|
||||||
|
|
Loading…
Reference in a new issue