We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65e20a7 commit 0fb3ab3Copy full SHA for 0fb3ab3
1 file changed
SharpEngine.Core/Component/ControlComponent.cs
@@ -185,9 +185,9 @@ private Vec2 GetFourDirectionMovement()
185
if (InputManager.IsKeyDown(_keys[ControlKey.Right]))
186
dirX++;
187
if (InputManager.IsKeyDown(_keys[ControlKey.Up]))
188
- dirY++;
189
- if (InputManager.IsKeyDown(_keys[ControlKey.Down]))
190
dirY--;
+ if (InputManager.IsKeyDown(_keys[ControlKey.Down]))
+ dirY++;
191
return new Vec2(dirX, dirY);
192
}
193
@@ -215,9 +215,9 @@ private Vec2 GetUpDownMovement()
215
{
216
var dirY = 0;
217
218
219
220
221
return new Vec2(0, dirY);
222
223
0 commit comments