Skip to content

Commit

Permalink
modify up value
Browse files Browse the repository at this point in the history
  • Loading branch information
Rmnesia authored Apr 21, 2024
1 parent fab271b commit 2571c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/addons/tilt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ void TiltInput::OverrideGamepad(Gamepad* gamepad, uint8_t dpad1, uint8_t dpad2)
gamepad->state.buttons |= (1U << 1);
return;
}
gamepad->state.lx = dpadToAnalogX(dpad1) + (midValue - dpadToAnalogX(dpad1)) * scaledTilt2FactorLeftY;
gamepad->state.ly = dpadToAnalogY(dpad1) + (midValue - dpadToAnalogY(dpad1)) * scaledTilt2FactorLeftY;
gamepad->state.lx = dpadToAnalogX(dpad1);
gamepad->state.rx = dpadToAnalogX(dpad2);
gamepad->state.ry = dpadToAnalogY(dpad2);
return;
Expand Down

0 comments on commit 2571c85

Please sign in to comment.