diff options
author | bunnei <bunneidev@gmail.com> | 2020-10-10 08:37:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-10 08:37:08 +0200 |
commit | f250011ba0785b5cb576813e277ddbc119362768 (patch) | |
tree | d7af135b42a8ef5c7b0e923df0522dc8a7d036c3 /src/input_common/motion_input.h | |
parent | Merge pull request #4771 from ReinUsesLisp/warn-unused-var (diff) | |
parent | Address comments (diff) | |
download | yuzu-f250011ba0785b5cb576813e277ddbc119362768.tar yuzu-f250011ba0785b5cb576813e277ddbc119362768.tar.gz yuzu-f250011ba0785b5cb576813e277ddbc119362768.tar.bz2 yuzu-f250011ba0785b5cb576813e277ddbc119362768.tar.lz yuzu-f250011ba0785b5cb576813e277ddbc119362768.tar.xz yuzu-f250011ba0785b5cb576813e277ddbc119362768.tar.zst yuzu-f250011ba0785b5cb576813e277ddbc119362768.zip |
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 |