diff options
| author | 2022-01-06 18:43:41 -0600 | |
|---|---|---|
| committer | 2022-01-06 20:05:59 -0600 | |
| commit | 50a71529416ccf52fed6fc96af28641eb043c414 (patch) | |
| tree | acf120d8e2ba9fd2961317d0cb967cc2dc78ea1e /src/core/hid/motion_input.cpp | |
| parent | input_common: Use accelerometer data for mapping (diff) | |
| download | yuzu-50a71529416ccf52fed6fc96af28641eb043c414.tar.gz yuzu-50a71529416ccf52fed6fc96af28641eb043c414.tar.xz yuzu-50a71529416ccf52fed6fc96af28641eb043c414.zip | |
core/hid: Set minimum gyro threshold
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) { |