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