From 1e70188edede66824d9973a381b03cc6414082bc Mon Sep 17 00:00:00 2001 From: Robin Jones Date: Wed, 3 Jul 2024 23:12:18 +0100 Subject: [PATCH] Improve rumble default state (#117) ## Description When loading the menu, ensure that any connected rumble paks are not rumbling. ## Motivation and Context It is possible that they would continue to rumble after a ROM has crashed or the console was reset from a game where the accessory was currently rumbling. ## How Has This Been Tested? ## Screenshots ## Types of changes - [ ] Improvement (non-breaking change that adds a new feature) - [x] Bug fix (fixes an issue) - [ ] Breaking change (breaking change) - [ ] Config and build (change in the configuration and build system, has no impact on code or features) ## Checklist: - [ ] My code follows the code style of this project. - [ ] My change requires a change to the documentation. - [ ] I have updated the documentation accordingly. - [ ] I have added tests to cover my changes. - [ ] All new and existing tests passed. Signed-off-by: GITHUB_USER --- src/menu/menu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/menu/menu.c b/src/menu/menu.c index beef676d..2243a03d 100644 --- a/src/menu/menu.c +++ b/src/menu/menu.c @@ -67,6 +67,10 @@ static void menu_init (boot_params_t *boot_params) { sound_init_default(); + JOYPAD_PORT_FOREACH (port) { + joypad_set_rumble_active(port, false); + } + menu = calloc(1, sizeof(menu_t)); assert(menu != NULL);