From 325c7fe36515c091482d417999efd02a4201dd8b Mon Sep 17 00:00:00 2001 From: Adam Bird Date: Fri, 11 Aug 2023 23:05:26 -0400 Subject: [PATCH] fix dark links input in mirror mode (#3109) --- soh/src/overlays/actors/ovl_En_Torch2/z_en_torch2.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/soh/src/overlays/actors/ovl_En_Torch2/z_en_torch2.c b/soh/src/overlays/actors/ovl_En_Torch2/z_en_torch2.c index d7bd610a2..120a924ff 100644 --- a/soh/src/overlays/actors/ovl_En_Torch2/z_en_torch2.c +++ b/soh/src/overlays/actors/ovl_En_Torch2/z_en_torch2.c @@ -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);