diff options
author | bunnei <bunneidev@gmail.com> | 2020-10-09 23:37:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-09 23:37:08 -0700 |
commit | f250011ba0785b5cb576813e277ddbc119362768 (patch) | |
tree | d7af135b42a8ef5c7b0e923df0522dc8a7d036c3 /src/input_common/motion_input.h | |
parent | 61b246a3a952e704549f3d3a191fcb7442420fb1 (diff) | |
parent | a54aee290ff8f94d1fefc70121512dbc46f6c190 (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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/input_common/motion_input.h b/src/input_common/motion_input.h index 12b7d0d3f..6342d0318 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 |