From 51c79d0cf0f8f1b47e5e94a73eab3c8b67a9584d Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Thu, 5 Nov 2015 21:06:31 -0800 Subject: [PATCH] Libretro: Fix problems with rumble not turning off --- CHANGES | 1 + src/platform/libretro/libretro.c | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES b/CHANGES index c7ab849ec..014bddd65 100644 --- a/CHANGES +++ b/CHANGES @@ -7,6 +7,7 @@ Bugfixes: - GBA Video: Fix _mix for 15-bit color - Qt: Fix font size in memory viewer - Qt: Fix a crash in the memory viewer + - Libretro: Fix problems with rumble not turning off Misc: - GBA Audio: Implement missing flags on SOUNDCNT_X register diff --git a/src/platform/libretro/libretro.c b/src/platform/libretro/libretro.c index 918b95005..3f651daf8 100644 --- a/src/platform/libretro/libretro.c +++ b/src/platform/libretro/libretro.c @@ -443,6 +443,7 @@ static void _setRumble(struct GBARumble* rumble, int enable) { } CircleBufferWrite8(&rumbleHistory, enable); rumbleCallback(0, RETRO_RUMBLE_STRONG, rumbleLevel * 0xFFFF / RUMBLE_PWM); + rumbleCallback(0, RETRO_RUMBLE_WEAK, rumbleLevel * 0xFFFF / RUMBLE_PWM); } static void _updateLux(struct GBALuminanceSource* lux) {