diff options
author | bunnei <bunneidev@gmail.com> | 2020-10-08 10:18:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-08 10:18:39 -0700 |
commit | 06e65de93cfa923b6fb1f12fa20193515249234d (patch) | |
tree | 9771ca19a2686af1185f62ed7488d977d37a1703 /src/input_common/motion_input.h | |
parent | 7a99226785642103037cf4152bf0a34435054e00 (diff) | |
parent | 297823239026d1b5487f9b07f63646ca4a2e3a79 (diff) |
Merge pull request #4677 from german77/ShakeFromButton
InputCommon: Add random motion input for buttons
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 54b4439d9d..12b7d0d3f3 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; |