We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5ef20b commit e502a68Copy full SHA for e502a68
Src/Modules/Player/Scripts/Player.cs
@@ -6,7 +6,7 @@ public partial class Player : CharacterBody2D
6
7
public override void _Process(double delta)
8
{
9
- var direction = Input.GetVector("left", "right", "up", "down");
+ var direction = Input.GetVector(MappedInputs.Left, MappedInputs.Right, MappedInputs.Up, MappedInputs.Down);
10
11
Velocity = direction * _speed;
12
}
0 commit comments