diff options
| author | 2020-10-09 23:37:08 -0700 | |
|---|---|---|
| committer | 2020-10-09 23:37:08 -0700 | |
| 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.gz yuzu-f250011ba0785b5cb576813e277ddbc119362768.tar.xz yuzu-f250011ba0785b5cb576813e277ddbc119362768.zip | |
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: | |||
| 46 | 46 | ||
| 47 | private: | 47 | private: |
| 48 | void ResetOrientation(); | 48 | void ResetOrientation(); |
| 49 | void SetOrientationFromAccelerometer(); | ||
| 49 | 50 | ||
| 50 | // PID constants | 51 | // PID constants |
| 51 | const f32 kp; | 52 | const f32 kp; |
| @@ -66,6 +67,7 @@ private: | |||
| 66 | f32 gyro_threshold = 0.0f; | 67 | f32 gyro_threshold = 0.0f; |
| 67 | u32 reset_counter = 0; | 68 | u32 reset_counter = 0; |
| 68 | bool reset_enabled = true; | 69 | bool reset_enabled = true; |
| 70 | bool only_accelerometer = true; | ||
| 69 | }; | 71 | }; |
| 70 | 72 | ||
| 71 | } // namespace InputCommon | 73 | } // namespace InputCommon |