diff --git a/Assets/dll/mgba.dll b/Assets/dll/mgba.dll index de333f7aeae..8d2b3f8d7e2 100644 Binary files a/Assets/dll/mgba.dll and b/Assets/dll/mgba.dll differ diff --git a/src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/LibmGBA.cs b/src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/LibmGBA.cs index 411f399ac66..8289cf11e50 100644 --- a/src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/LibmGBA.cs +++ b/src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/LibmGBA.cs @@ -199,7 +199,7 @@ public abstract bool BizAdvance(IntPtr ctx, Buttons keys, int[] vbuff, ref int n public abstract void BizSetInputCallback(IntPtr ctx, InputCallback cb); [UnmanagedFunctionPointer(cc)] - public delegate void RumbleCallback([MarshalAs(UnmanagedType.Bool)] bool enable); + public delegate void RumbleCallback(int value); [BizImport(cc)] public abstract void BizSetRumbleCallback(IntPtr ctx, RumbleCallback cb); diff --git a/src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/MGBAHawk.IInputPollable.cs b/src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/MGBAHawk.IInputPollable.cs index 82d1cbb7a11..8d9c94d8111 100644 --- a/src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/MGBAHawk.IInputPollable.cs +++ b/src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/MGBAHawk.IInputPollable.cs @@ -12,7 +12,7 @@ public partial class MGBAHawk : IInputPollable public bool IsLagFrame { get; set; } public IInputCallbackSystem InputCallbacks { get; } = new InputCallbackSystem(); - private void SetRumble(bool enable) - => _controller.SetHapticChannelStrength("Rumble", enable ? int.MaxValue : 0); + private void SetRumble(int value) + => _controller.SetHapticChannelStrength("Rumble", value); } }