diff options
| author | JMC47 <JMC4789@gmail.com> | 2026-11-01 14:59:45 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-01 14:59:45 -0500 |
| commit | 833d8c05965ac1e2242799d3c9b0e0fadbcbb7f8 (patch) | |
| tree | 43c8c9f956abfa5826030d3cc60d4b621f926359 /Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUGyroscope.cpp | |
| parent | e6ed14488a84eeaae1856e1d7c0dd457dceb49ce (diff) | |
| parent | 6dcb0817a2cd1a507dbf5e3c42bf13623b5b5cae (diff) | |
Merge pull request #14704 from JoshuaVandaele/mathutils-23
MathUtil: C++20/23 modernisations
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUGyroscope.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUGyroscope.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUGyroscope.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUGyroscope.cpp index 316ed45f84..11bcad964a 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUGyroscope.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUGyroscope.cpp @@ -163,7 +163,7 @@ std::optional<IMUGyroscope::StateData> IMUGyroscope::GetState(bool update) ControlState IMUGyroscope::GetDeadzone() const { - return m_deadzone_setting.GetValue() / 360 * MathUtil::TAU; + return MathUtil::DegreesToRadians(m_deadzone_setting.GetValue()); } bool IMUGyroscope::IsCalibrating() const |
