summaryrefslogtreecommitdiffstats
path: root/src/input_common/motion_input.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-10-10 08:37:08 +0200
committerGitHub <noreply@github.com>2020-10-10 08:37:08 +0200
commitf250011ba0785b5cb576813e277ddbc119362768 (patch)
treed7af135b42a8ef5c7b0e923df0522dc8a7d036c3 /src/input_common/motion_input.h
parentMerge pull request #4771 from ReinUsesLisp/warn-unused-var (diff)
parentAddress comments (diff)
downloadyuzu-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.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 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