Flipped up and down in code

This commit is contained in:
2026-06-19 13:35:09 +02:00
parent 8d23d1812f
commit 420bef5862
6 changed files with 62 additions and 83 deletions

View File

@@ -100,7 +100,7 @@
return;
}
verticalValue = Math.Abs(value);
if (value < -0.5)
if (value > 0.5)
{
inputVertical = Direction.Up;
if (verticalValue >= horizontalValue)
@@ -108,7 +108,7 @@
SetPriority(false);
}
}
else if (value > 0.5)
else if (value < -0.5)
{
inputVertical = Direction.Down;
if (verticalValue >= horizontalValue)