summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar german772022-01-06 18:43:41 -0600
committerGravatar german772022-01-06 20:05:59 -0600
commit50a71529416ccf52fed6fc96af28641eb043c414 (patch)
treeacf120d8e2ba9fd2961317d0cb967cc2dc78ea1e
parentinput_common: Use accelerometer data for mapping (diff)
downloadyuzu-50a71529416ccf52fed6fc96af28641eb043c414.tar.gz
yuzu-50a71529416ccf52fed6fc96af28641eb043c414.tar.xz
yuzu-50a71529416ccf52fed6fc96af28641eb043c414.zip
core/hid: Set minimum gyro threshold
Diffstat (limited to '')
-rw-r--r--src/core/hid/motion_input.cpp1
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 {
10MotionInput::MotionInput() { 10MotionInput::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
15void MotionInput::SetPID(f32 new_kp, f32 new_ki, f32 new_kd) { 16void MotionInput::SetPID(f32 new_kp, f32 new_ki, f32 new_kd) {