Skip to content

Commit

Permalink
mGBA windows build + C# side changes
Browse files Browse the repository at this point in the history
  • Loading branch information
CasualPokePlayer committed Nov 24, 2024
1 parent 1fb23ac commit 39a896b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified Assets/dll/mgba.dll
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 39a896b

Please sign in to comment.