Rename Flush to Clear and remove unnecessary attribute

This commit is contained in:
TSR Berry 2024-04-16 17:52:05 +02:00
commit aecf36276e
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); return _pressedKeys.Contains(nativeKey);
} }
public void Flush() public void Clear()
{ {
_pressedKeys.Clear(); _pressedKeys.Clear();
} }

View file

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

View file

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

View file

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

View file

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