Rename Flush to Clear and remove unnecessary attribute
This commit is contained in:
parent
b33a5f9877
commit
218511ca6e
5 changed files with 5 additions and 7 deletions
|
@ -81,7 +81,7 @@ namespace Ryujinx.Input.GTK3
|
|||
return _pressedKeys.Contains(nativeKey);
|
||||
}
|
||||
|
||||
public void Flush()
|
||||
public void Clear()
|
||||
{
|
||||
_pressedKeys.Clear();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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() { }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -195,7 +195,7 @@ namespace Ryujinx.Ava.Input
|
|||
|
||||
public void Clear()
|
||||
{
|
||||
_driver?.Flush();
|
||||
_driver?.Clear();
|
||||
}
|
||||
|
||||
public void Dispose() { }
|
||||
|
|
|
@ -94,7 +94,7 @@ namespace Ryujinx.Ava.Input
|
|||
return _pressedKeys.Contains(nativeKey);
|
||||
}
|
||||
|
||||
public void Flush()
|
||||
public void Clear()
|
||||
{
|
||||
_pressedKeys.Clear();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue