Move some backing fields to match others.
formatting pt.2
This commit is contained in:
parent
fe3eeb075c
commit
249b3597a5
1 changed files with 12 additions and 14 deletions
|
@ -23,10 +23,6 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
|
|||
|
||||
private IGamepad _selectedGamepad;
|
||||
|
||||
// Offset from origin for UI stick visualization.
|
||||
private (float, float) _uiStickLeft;
|
||||
private (float, float) _uiStickRight;
|
||||
|
||||
private float _vectorLength;
|
||||
private float _vectorMultiplier;
|
||||
|
||||
|
@ -81,6 +77,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
|
|||
}
|
||||
}
|
||||
|
||||
private (float, float) _uiStickLeft;
|
||||
public (float, float) UiStickLeft
|
||||
{
|
||||
get => (_uiStickLeft.Item1 * DrawStickScaleFactor, _uiStickLeft.Item2 * DrawStickScaleFactor);
|
||||
|
@ -95,6 +92,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
|
|||
}
|
||||
}
|
||||
|
||||
private (float, float) _uiStickRight;
|
||||
public (float, float) UiStickRight
|
||||
{
|
||||
get => (_uiStickRight.Item1 * DrawStickScaleFactor, _uiStickRight.Item2 * DrawStickScaleFactor);
|
||||
|
@ -133,8 +131,8 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
|
|||
{
|
||||
get
|
||||
{
|
||||
_vectorMultiplier = 1;
|
||||
_vectorLength = GetVectorLength(UiStickLeft);
|
||||
_vectorMultiplier = 1;
|
||||
_vectorLength = GetVectorLength(UiStickLeft);
|
||||
|
||||
if (_vectorLength > MaxVectorLength)
|
||||
{
|
||||
|
@ -149,8 +147,8 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
|
|||
{
|
||||
get
|
||||
{
|
||||
_vectorMultiplier = 1;
|
||||
_vectorLength = GetVectorLength(UiStickRight);
|
||||
_vectorMultiplier = 1;
|
||||
_vectorLength = GetVectorLength(UiStickRight);
|
||||
|
||||
if (_vectorLength > MaxVectorLength)
|
||||
{
|
||||
|
@ -165,8 +163,8 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
|
|||
{
|
||||
get
|
||||
{
|
||||
_vectorMultiplier = 1;
|
||||
_vectorLength = GetVectorLength(UiStickRight);
|
||||
_vectorMultiplier = 1;
|
||||
_vectorLength = GetVectorLength(UiStickRight);
|
||||
|
||||
if (_vectorLength > MaxVectorLength)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue