From 4e04d0d6927dca99cfd39b2f85017ee895f98d0d Mon Sep 17 00:00:00 2001 From: Archez Date: Wed, 17 Apr 2024 16:23:11 -0400 Subject: [PATCH] Fix control stick inputs getting maximized (#217) --- mm/src/code/padmgr.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mm/src/code/padmgr.c b/mm/src/code/padmgr.c index 32b345c2f..61a94e206 100644 --- a/mm/src/code/padmgr.c +++ b/mm/src/code/padmgr.c @@ -354,13 +354,13 @@ void PadMgr_AdjustInput(Input* input) { s8 curX = input->cur.stick_x; s8 curY = input->cur.stick_y; - // BENTODO - // if (CHECK_BTN_ANY(input->press.button, BTN_RESET) || (input->press.stick_x == 0)) { - // input->press.stick_x = 61; - // input->press.err_no = -61; - // input->press.stick_y = 63; - // input->rel.err_no = -63; - //} + // BENTODO: Do we need controller reset logic? + if (/* CHECK_BTN_ANY(input->press.button, BTN_RESET) || */ (input->press.stick_x == 0)) { + input->press.stick_x = 61; + input->press.err_no = -61; + input->press.stick_y = 63; + input->rel.err_no = -63; + } pressX = input->press.stick_x; pressX2 = (s8)input->press.err_no; pressY = input->press.stick_y;