mGBA windows build + C# side changes

This commit is contained in:
CasualPokePlayer 2024-11-24 13:39:18 -08:00
parent 1fb23ac6ac
commit 39a896b289
3 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@ -199,7 +199,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBA
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);

View File

@ -12,7 +12,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBA
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);
}
}