summaryrefslogtreecommitdiff
path: root/mm/src/code
diff options
context:
space:
mode:
authorArchez <Archez@users.noreply.github.com>2024-04-17 16:23:11 -0400
committerGarrett Cox <garrettjcox@gmail.com>2024-05-22 09:05:01 -0500
commit4e04d0d6927dca99cfd39b2f85017ee895f98d0d (patch)
tree61e8e16446589eeab67710663e7df6a8229e5514 /mm/src/code
parentb85d0d5ac7ecac4be45a9b4d07ab867b33e68b43 (diff)
Fix control stick inputs getting maximized (#217)
Diffstat (limited to 'mm/src/code')
-rw-r--r--mm/src/code/padmgr.c14
1 files 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;