Skip to content

Commit

Permalink
fix dark links input in mirror mode (#3109)
Browse files Browse the repository at this point in the history
  • Loading branch information
Archez committed Aug 12, 2023
1 parent d22ca3c commit 325c7fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions soh/src/overlays/actors/ovl_En_Torch2/z_en_torch2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 325c7fe

Please sign in to comment.