aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Services/Hid
diff options
context:
space:
mode:
authorTSRBerry <20988865+TSRBerry@users.noreply.github.com>2023-06-28 01:18:19 +0200
committerGitHub <noreply@github.com>2023-06-28 01:18:19 +0200
commitfbaf62c2309f2987fa73a2022167ee3e81e31ea9 (patch)
tree9d2ef3298843b551a544acc429f2269f101af935 /src/Ryujinx.HLE/HOS/Services/Hid
parentb186ec9fc5684bd8fa831a1777f6e936b897c352 (diff)
Apply new naming rule to all projects except Vp9 (#5407)
Diffstat (limited to 'src/Ryujinx.HLE/HOS/Services/Hid')
-rw-r--r--src/Ryujinx.HLE/HOS/Services/Hid/Hid.cs18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/Ryujinx.HLE/HOS/Services/Hid/Hid.cs b/src/Ryujinx.HLE/HOS/Services/Hid/Hid.cs
index b1466c78..e4755f78 100644
--- a/src/Ryujinx.HLE/HOS/Services/Hid/Hid.cs
+++ b/src/Ryujinx.HLE/HOS/Services/Hid/Hid.cs
@@ -83,18 +83,18 @@ namespace Ryujinx.HLE.HOS.Services.Hid
public ControllerKeys UpdateStickButtons(JoystickPosition leftStick, JoystickPosition rightStick)
{
- const int stickButtonThreshold = short.MaxValue / 2;
+ const int StickButtonThreshold = short.MaxValue / 2;
ControllerKeys result = 0;
- result |= (leftStick.Dx < -stickButtonThreshold) ? ControllerKeys.LStickLeft : result;
- result |= (leftStick.Dx > stickButtonThreshold) ? ControllerKeys.LStickRight : result;
- result |= (leftStick.Dy < -stickButtonThreshold) ? ControllerKeys.LStickDown : result;
- result |= (leftStick.Dy > stickButtonThreshold) ? ControllerKeys.LStickUp : result;
+ result |= (leftStick.Dx < -StickButtonThreshold) ? ControllerKeys.LStickLeft : result;
+ result |= (leftStick.Dx > StickButtonThreshold) ? ControllerKeys.LStickRight : result;
+ result |= (leftStick.Dy < -StickButtonThreshold) ? ControllerKeys.LStickDown : result;
+ result |= (leftStick.Dy > StickButtonThreshold) ? ControllerKeys.LStickUp : result;
- result |= (rightStick.Dx < -stickButtonThreshold) ? ControllerKeys.RStickLeft : result;
- result |= (rightStick.Dx > stickButtonThreshold) ? ControllerKeys.RStickRight : result;
- result |= (rightStick.Dy < -stickButtonThreshold) ? ControllerKeys.RStickDown : result;
- result |= (rightStick.Dy > stickButtonThreshold) ? ControllerKeys.RStickUp : result;
+ result |= (rightStick.Dx < -StickButtonThreshold) ? ControllerKeys.RStickLeft : result;
+ result |= (rightStick.Dx > StickButtonThreshold) ? ControllerKeys.RStickRight : result;
+ result |= (rightStick.Dy < -StickButtonThreshold) ? ControllerKeys.RStickDown : result;
+ result |= (rightStick.Dy > StickButtonThreshold) ? ControllerKeys.RStickUp : result;
return result;
}