diff options
author | german <german@thesoftwareartisans.com> | 2020-09-18 03:26:34 +0200 |
---|---|---|
committer | german <german@thesoftwareartisans.com> | 2020-09-26 00:59:52 +0200 |
commit | 03b574ae2272fc8465e7d38f21b198fcb1885186 (patch) | |
tree | e6e70906677339fce1a7bedafab8d8fcb39026b4 /src/input_common/motion_input.h | |
parent | Merge pull request #4717 from lioncash/debug (diff) | |
download | yuzu-03b574ae2272fc8465e7d38f21b198fcb1885186.tar yuzu-03b574ae2272fc8465e7d38f21b198fcb1885186.tar.gz yuzu-03b574ae2272fc8465e7d38f21b198fcb1885186.tar.bz2 yuzu-03b574ae2272fc8465e7d38f21b198fcb1885186.tar.lz yuzu-03b574ae2272fc8465e7d38f21b198fcb1885186.tar.xz yuzu-03b574ae2272fc8465e7d38f21b198fcb1885186.tar.zst yuzu-03b574ae2272fc8465e7d38f21b198fcb1885186.zip |
Diffstat (limited to 'src/input_common/motion_input.h')
-rw-r--r-- | src/input_common/motion_input.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/input_common/motion_input.h b/src/input_common/motion_input.h index 54b4439d9..12b7d0d3f 100644 --- a/src/input_common/motion_input.h +++ b/src/input_common/motion_input.h @@ -7,6 +7,7 @@ #include "common/common_types.h" #include "common/quaternion.h" #include "common/vector_math.h" +#include "core/frontend/input.h" namespace InputCommon { @@ -37,6 +38,8 @@ public: Common::Vec3f GetGyroscope() const; Common::Vec3f GetRotations() const; Common::Quaternion<f32> GetQuaternion() const; + Input::MotionStatus GetMotion() const; + Input::MotionStatus GetRandomMotion(int accel_magnitude, int gyro_magnitude) const; bool IsMoving(f32 sensitivity) const; bool IsCalibrated(f32 sensitivity) const; |