mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-06-07 21:09:14 +00:00
Memory changes 3 (ryubing/ryujinx!202)
See merge request ryubing/ryujinx!202
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System.Buffers;
|
||||
using System.Drawing;
|
||||
using System.Numerics;
|
||||
|
||||
@@ -47,7 +48,7 @@ namespace Ryujinx.Input
|
||||
/// <returns>A snaphost of the state of the mouse.</returns>
|
||||
public static MouseStateSnapshot GetMouseStateSnapshot(IMouse mouse)
|
||||
{
|
||||
bool[] buttons = new bool[(int)MouseButton.Count];
|
||||
bool[] buttons = ArrayPool<bool>.Shared.Rent((int)MouseButton.Count);
|
||||
|
||||
mouse.Buttons.CopyTo(buttons, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user