diff options
| author | 2022-01-08 00:06:15 -0800 | |
|---|---|---|
| committer | 2022-01-08 00:06:15 -0800 | |
| commit | 26f4e92c1fa5486f4047990ee7351f18f7fe4f1c (patch) | |
| tree | 592c31594566b2f933f358b79a7b44380fa2515b /src/core/hid/motion_input.cpp | |
| parent | Merge pull request #7658 from ameerj/sparse-fixes (diff) | |
| parent | core/hid: Set minimum gyro threshold (diff) | |
| download | yuzu-26f4e92c1fa5486f4047990ee7351f18f7fe4f1c.tar.gz yuzu-26f4e92c1fa5486f4047990ee7351f18f7fe4f1c.tar.xz yuzu-26f4e92c1fa5486f4047990ee7351f18f7fe4f1c.zip | |
Merge pull request #7680 from german77/accel_mapping
input_common: Allow to only have acceleration motion data
Diffstat (limited to 'src/core/hid/motion_input.cpp')
| -rw-r--r-- | src/core/hid/motion_input.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hid/motion_input.cpp b/src/core/hid/motion_input.cpp index a23f192d7..43152492e 100644 --- a/src/core/hid/motion_input.cpp +++ b/src/core/hid/motion_input.cpp | |||
| @@ -10,6 +10,7 @@ namespace Core::HID { | |||
| 10 | MotionInput::MotionInput() { | 10 | MotionInput::MotionInput() { |
| 11 | // Initialize PID constants with default values | 11 | // Initialize PID constants with default values |
| 12 | SetPID(0.3f, 0.005f, 0.0f); | 12 | SetPID(0.3f, 0.005f, 0.0f); |
| 13 | SetGyroThreshold(0.001f); | ||
| 13 | } | 14 | } |
| 14 | 15 | ||
| 15 | void MotionInput::SetPID(f32 new_kp, f32 new_ki, f32 new_kd) { | 16 | void MotionInput::SetPID(f32 new_kp, f32 new_ki, f32 new_kd) { |