mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-06-27 22:59:05 +00:00
Memory changes 3 (ryubing/ryujinx!202)
See merge request ryubing/ryujinx!202
This commit is contained in:
@@ -8,7 +8,7 @@ namespace Ryujinx.Input
|
||||
/// </summary>
|
||||
public class MouseStateSnapshot
|
||||
{
|
||||
private readonly bool[] _buttonState;
|
||||
public readonly bool[] ButtonState;
|
||||
|
||||
/// <summary>
|
||||
/// The position of the mouse cursor
|
||||
@@ -28,7 +28,7 @@ namespace Ryujinx.Input
|
||||
/// <param name="scroll">The scroll delta</param>
|
||||
public MouseStateSnapshot(bool[] buttonState, Vector2 position, Vector2 scroll)
|
||||
{
|
||||
_buttonState = buttonState;
|
||||
ButtonState = buttonState;
|
||||
|
||||
Position = position;
|
||||
Scroll = scroll;
|
||||
@@ -40,6 +40,6 @@ namespace Ryujinx.Input
|
||||
/// <param name="button">The button</param>
|
||||
/// <returns>True if the given button is pressed</returns>
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public bool IsPressed(MouseButton button) => _buttonState[(int)button];
|
||||
public bool IsPressed(MouseButton button) => ButtonState[(int)button];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user