Rename Flush to Clear and remove unnecessary attribute

This commit is contained in:
TSR Berry 2024-04-16 17:52:05 +02:00
parent b33a5f9877
commit 218511ca6e
No known key found for this signature in database
GPG key ID: 52353C0A4CCA15E2
5 changed files with 5 additions and 7 deletions

View file

@ -81,7 +81,7 @@ namespace Ryujinx.Input.GTK3
return _pressedKeys.Contains(nativeKey);
}
public void Flush()
public void Clear()
{
_pressedKeys.Clear();
}

View file

@ -176,7 +176,7 @@ namespace Ryujinx.Input.HLE
{
foreach (InputConfig inputConfig in _inputConfig)
{
_controllers[(int)inputConfig.PlayerIndex].GamepadDriver.Flush();
_controllers[(int)inputConfig.PlayerIndex].GamepadDriver.Clear();
}
_blockInputUpdates = false;

View file

@ -1,5 +1,4 @@
using System;
using System.Runtime.CompilerServices;
namespace Ryujinx.Input
{
@ -39,7 +38,6 @@ namespace Ryujinx.Input
/// Flush the internal state of the driver.
/// </summary>
/// <remarks>Does nothing by default.</remarks>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
void Flush() { }
void Clear() { }
}
}

View file

@ -195,7 +195,7 @@ namespace Ryujinx.Ava.Input
public void Clear()
{
_driver?.Flush();
_driver?.Clear();
}
public void Dispose() { }

View file

@ -94,7 +94,7 @@ namespace Ryujinx.Ava.Input
return _pressedKeys.Contains(nativeKey);
}
public void Flush()
public void Clear()
{
_pressedKeys.Clear();
}