Skip to content

Commit 7b3e891

Browse files
andressbarajasQuzarDC
authored andcommitted
maple: Don't reset controllers on shutdown.
- A RESET re-zeroes their analog axes at the current position, so triggers/stick held at exit stay miscalibrated.
1 parent bf362c8 commit 7b3e891

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

kernel/arch/dreamcast/hardware/maple/maple_init_shutdown.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ static void maple_dev_reset(maple_device_t *dev) {
8080
}
8181

8282
static void maple_dev_reset_all(void) {
83-
MAPLE_FOREACH_BEGIN(MAPLE_FUNC_ANY, void, st)
83+
/* Skip controllers: a RESET re-zeroes their analog axes at the current
84+
position, so triggers/stick held at exit stay miscalibrated. */
85+
MAPLE_FOREACH_BEGIN(MAPLE_FUNC_ANY & ~MAPLE_FUNC_CONTROLLER, void, st)
8486
maple_dev_reset(__dev);
8587
(void)st;
8688
MAPLE_FOREACH_END()

0 commit comments

Comments
 (0)