mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-08-02 02:32:26 -07:00
Rename ToSpan to AsSpan (#3556)
This commit is contained in:
@@ -26,7 +26,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid
|
||||
SamplingNumber = previousEntry.SamplingNumber + 1,
|
||||
};
|
||||
|
||||
keyState.Keys.AsSpan().CopyTo(newState.Keys.RawData.ToSpan());
|
||||
keyState.Keys.AsSpan().CopyTo(newState.Keys.RawData.AsSpan());
|
||||
newState.Modifiers = (KeyboardModifier)keyState.Modifier;
|
||||
|
||||
lifo.Write(ref newState);
|
||||
|
@@ -543,7 +543,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid
|
||||
Attributes = SixAxisSensorAttribute.IsConnected
|
||||
};
|
||||
|
||||
state.Orientation.AsSpan().CopyTo(newState.Direction.ToSpan());
|
||||
state.Orientation.AsSpan().CopyTo(newState.Direction.AsSpan());
|
||||
|
||||
ref RingLifo<SixAxisSensorState> lifo = ref GetSixAxisSensorLifo(ref currentNpad, isRightPair);
|
||||
|
||||
|
Reference in New Issue
Block a user