Godot Version
4.3.stable
Question
Input.get_axis() and Input.get_vector() didn’t work as it expect to be.
for example:
var original_input: Vector2 = Input.get_vector(&“move_left”, &“move_right”, &“move_up”, &“move_down”)
print(original_input)
If you hold “left”, “right”, “up” key at the same time, (I know it sounds weard, but players gonna do that.) input vector suppose to be Vector2(0, -1), but it actually receive Vector2.ZERO.
If you hold “left”, “right”, “down” at the same time, it works fine and output Vector2(0, 1).
If you hold three keys at the same time, the negative input will disappear and positive will remain.
var original_input: Vector2 = Vector2.ZERO
original_input.x = Input.get_axis(&“ui_left”, &“ui_right”)
original_input.y = Input.get_axis(&“ui_up”, &“ui_down”)
print(original_input)
It didn’t help, it do the same.