Merge branch 'master' of https://github.com/godotengine/godot
This commit is contained in:
commit
a73cf7f794
|
@ -2635,7 +2635,7 @@ bool Variant::in(const Variant& p_index, bool *r_valid) const {
|
|||
if (l) {
|
||||
for(int i=0;i<l;i++) {
|
||||
|
||||
if ((*arr)[i]==p_index)
|
||||
if (evaluate(OP_EQUAL,(*arr)[i],p_index))
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -226,6 +226,8 @@ 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;
|
||||
|
||||
if (p_use_as_mouse) {
|
||||
|
||||
InputEvent ev;
|
||||
|
@ -245,8 +247,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);
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue