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/ControllerInterface/evdev/evdev.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/ControllerInterface/evdev/evdev.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp index c8fa7b3647..fc10325fa0 100644 --- a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp +++ b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp @@ -541,7 +541,7 @@ bool evdevDevice::AddNode(std::string devnode, int fd, libevdev* dev) // evdev resolution is specified in "g"s and deg/s. // Convert these to m/s/s and rad/s. constexpr ControlState accel_scale = MathUtil::GRAVITY_ACCELERATION; - constexpr ControlState gyro_scale = MathUtil::TAU / 360; + constexpr ControlState gyro_scale = MathUtil::DegreesToRadians(ControlState{1}); add_motion_inputs(ABS_X, accel_scale); add_motion_inputs(ABS_RX, gyro_scale); |
