Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
Make left+right != 1.0 when up or down is pressed
Browse files Browse the repository at this point in the history
  • Loading branch information
Crane1195 committed Aug 19, 2022
1 parent 6f1b71b commit f6bb134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GameModes/Melee.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class meleeMode {
outputStatus updateOutput(inputStatus *inputs) {
outputStatus outputs = rectangleDAC(inputs, coords, leftXSOCD, leftYSOCD, rightXSOCD, rightYSOCD);

if (inputs->l_Left && inputs->l_Right && (outputs.leftStickX != coords.neutral) && !inputs->r2 && !inputs->l2 && !inputs->lightshield && !inputs->midshield) {
if (inputs->l_Left && inputs->l_Right && (outputs.leftStickX != coords.neutral) && (outputs.leftStickY == coords.neutral) && !inputs->r2 && !inputs->l2 && !inputs->lightshield && !inputs->midshield) {
if (outputs.leftStickX > coords.neutral)
outputs.leftStickX = coords.neutral + coords.maxOffset;
else
Expand Down

0 comments on commit f6bb134

Please sign in to comment.