aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Input/HLE/NpadController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Input/HLE/NpadController.cs')
-rw-r--r--Ryujinx.Input/HLE/NpadController.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Ryujinx.Input/HLE/NpadController.cs b/Ryujinx.Input/HLE/NpadController.cs
index 1e0789b7..6706ad0b 100644
--- a/Ryujinx.Input/HLE/NpadController.cs
+++ b/Ryujinx.Input/HLE/NpadController.cs
@@ -543,14 +543,14 @@ namespace Ryujinx.Input.HLE
Dispose(true);
}
- public void UpdateRumble(ConcurrentQueue<(HidVibrationValue, HidVibrationValue)> queue)
+ public void UpdateRumble(ConcurrentQueue<(VibrationValue, VibrationValue)> queue)
{
- if (queue.TryDequeue(out (HidVibrationValue, HidVibrationValue) dualVibrationValue))
+ if (queue.TryDequeue(out (VibrationValue, VibrationValue) dualVibrationValue))
{
if (_config is StandardControllerInputConfig controllerConfig && controllerConfig.Rumble.EnableRumble)
{
- HidVibrationValue leftVibrationValue = dualVibrationValue.Item1;
- HidVibrationValue rightVibrationValue = dualVibrationValue.Item2;
+ VibrationValue leftVibrationValue = dualVibrationValue.Item1;
+ VibrationValue rightVibrationValue = dualVibrationValue.Item2;
float low = Math.Min(1f, (float)((rightVibrationValue.AmplitudeLow * 0.85 + rightVibrationValue.AmplitudeHigh * 0.15) * controllerConfig.Rumble.StrongRumble));
float high = Math.Min(1f, (float)((leftVibrationValue.AmplitudeLow * 0.15 + leftVibrationValue.AmplitudeHigh * 0.85) * controllerConfig.Rumble.WeakRumble));