diff options
| author | 2021-11-14 21:56:54 -0600 | |
|---|---|---|
| committer | 2021-11-24 20:30:28 -0600 | |
| commit | 42949738f2c01a4125a9a385c9100240181153ec (patch) | |
| tree | 5de97be0bc08a1dd4ff5138196c08a6bf2e08e70 /src/input_common/input_engine.cpp | |
| parent | core/hid: Improve accuary of mouse implementation (diff) | |
| download | yuzu-42949738f2c01a4125a9a385c9100240181153ec.tar.gz yuzu-42949738f2c01a4125a9a385c9100240181153ec.tar.xz yuzu-42949738f2c01a4125a9a385c9100240181153ec.zip | |
kraken: Address comments from review
Fix compiler bug
Diffstat (limited to '')
| -rw-r--r-- | src/input_common/input_engine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/input_engine.cpp b/src/input_common/input_engine.cpp index 139d8d2e6..2b2105376 100644 --- a/src/input_common/input_engine.cpp +++ b/src/input_common/input_engine.cpp | |||
| @@ -300,8 +300,8 @@ void InputEngine::TriggerOnMotionChange(const PadIdentifier& identifier, int mot | |||
| 300 | if (!configuring || !mapping_callback.on_data) { | 300 | if (!configuring || !mapping_callback.on_data) { |
| 301 | return; | 301 | return; |
| 302 | } | 302 | } |
| 303 | if (std::abs(value.gyro_x) < 1.0f && std::abs(value.gyro_y) < 1.0f && | 303 | if (std::abs(value.gyro_x) < 0.6f && std::abs(value.gyro_y) < 0.6f && |
| 304 | std::abs(value.gyro_z) < 1.0f) { | 304 | std::abs(value.gyro_z) < 0.6f) { |
| 305 | return; | 305 | return; |
| 306 | } | 306 | } |
| 307 | mapping_callback.on_data(MappingData{ | 307 | mapping_callback.on_data(MappingData{ |