aboutsummaryrefslogtreecommitdiff
path: root/src/input_common/motion_input.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-10-09 23:37:08 -0700
committerGitHub <noreply@github.com>2020-10-09 23:37:08 -0700
commit7eaad002f53b85223ebbc1d03272288c2c1f19dc (patch)
treed7af135b42a8ef5c7b0e923df0522dc8a7d036c3 /src/input_common/motion_input.h
parent8dfb152d3f79d7aefe4d4c8ac59c755f1920db8e (diff)
parentec0a0a94b42bdfe0690cbf3c79d07f83bbbee961 (diff)
Merge pull request #4757 from german77/BetterMotion
InputCommon: Add compatibility with only accelerometer and auto calibrate for drift
Diffstat (limited to 'src/input_common/motion_input.h')
-rw-r--r--src/input_common/motion_input.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/input_common/motion_input.h b/src/input_common/motion_input.h
index 12b7d0d3f3..6342d03187 100644
--- a/src/input_common/motion_input.h
+++ b/src/input_common/motion_input.h
@@ -46,6 +46,7 @@ public:
private:
void ResetOrientation();
+ void SetOrientationFromAccelerometer();
// PID constants
const f32 kp;
@@ -66,6 +67,7 @@ private:
f32 gyro_threshold = 0.0f;
u32 reset_counter = 0;
bool reset_enabled = true;
+ bool only_accelerometer = true;
};
} // namespace InputCommon