Merge branch 'master' of https://github.com/okamstudio/godot into add_sprintf
This commit is contained in:
@ -1701,6 +1701,19 @@ void Variant::set(const Variant& p_index, const Variant& p_value, bool *r_valid)
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (ie.type == InputEvent::ACTION) {
|
||||
|
||||
if (str =="action") {
|
||||
valid=true;
|
||||
ie.action.action=p_value;
|
||||
return;
|
||||
}
|
||||
else if (str == "pressed") {
|
||||
valid=true;
|
||||
ie.action.pressed=p_value;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
} break;
|
||||
case DICTIONARY: {
|
||||
@ -2379,6 +2392,17 @@ Variant Variant::get(const Variant& p_index, bool *r_valid) const {
|
||||
return Vector2(ie.screen_drag.speed_x,ie.screen_drag.speed_y);
|
||||
}
|
||||
}
|
||||
if (ie.type == InputEvent::ACTION) {
|
||||
|
||||
if (str =="action") {
|
||||
valid=true;
|
||||
return ie.action.action;
|
||||
}
|
||||
else if (str == "pressed") {
|
||||
valid=true;
|
||||
ie.action.pressed;
|
||||
}
|
||||
}
|
||||
|
||||
} break;
|
||||
case DICTIONARY: {
|
||||
|
||||
Reference in New Issue
Block a user