fix dark links input in mirror mode (#3109)

This commit is contained in:
Adam Bird 2023-08-11 23:05:26 -04:00 committed by GitHub
parent d22ca3cfc3
commit 325c7fe365
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -591,6 +591,10 @@ void EnTorch2_Update(Actor* thisx, PlayState* play2) {
input->prev.button = input->cur.button & (u16) ~(BTN_A | BTN_B);
PadUtils_UpdateRelXY(input);
if (CVarGetInteger("gMirroredWorld", 0)) {
input->rel.stick_x *= -1;
}
input->press.stick_x += (s8)(input->cur.stick_x - input->prev.stick_x);
input->press.stick_y += (s8)(input->cur.stick_y - input->prev.stick_y);