summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerEmu/ControlGroup/Force.cpp
diff options
context:
space:
mode:
authorJoshua Vandaƫle <joshua@vandaele.software>2026-06-28 08:33:40 +0200
committerJoshua Vandaƫle <joshua@vandaele.software>2026-07-13 02:32:33 +0200
commit6dcb0817a2cd1a507dbf5e3c42bf13623b5b5cae (patch)
tree3da2430b2edd92a2af41ee010b82da2b8ef09968 /Source/Core/InputCommon/ControllerEmu/ControlGroup/Force.cpp
parent774200dcf4ccea148ef357cc8cf86d8eab4446da (diff)
MathUtil: C++20/23 modernisations
I've also created DegreesToRadians/RadiansToDegrees utility functions since there was a lot of repeated code
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/ControlGroup/Force.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerEmu/ControlGroup/Force.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/Force.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/Force.cpp
index d74c4df5eb..214d948f44 100644
--- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/Force.cpp
+++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/Force.cpp
@@ -106,7 +106,7 @@ ControlState Force::GetReturnSpeed() const
ControlState Force::GetTwistAngle() const
{
- return m_angle_setting.GetValue() * MathUtil::TAU / 360;
+ return MathUtil::DegreesToRadians(m_angle_setting.GetValue());
}
ControlState Force::GetMaxDistance() const