summaryrefslogtreecommitdiff
path: root/src/input_common/motion_input.h
diff options
context:
space:
mode:
authorGravatar bunnei2020-10-08 10:18:39 -0700
committerGravatar GitHub2020-10-08 10:18:39 -0700
commit06e65de93cfa923b6fb1f12fa20193515249234d (patch)
tree9771ca19a2686af1185f62ed7488d977d37a1703 /src/input_common/motion_input.h
parentMerge pull request #4765 from ReinUsesLisp/fix-sort-devices (diff)
parentAdd random motion input to keyboard (diff)
downloadyuzu-06e65de93cfa923b6fb1f12fa20193515249234d.tar.gz
yuzu-06e65de93cfa923b6fb1f12fa20193515249234d.tar.xz
yuzu-06e65de93cfa923b6fb1f12fa20193515249234d.zip
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.h3
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 @@
7#include "common/common_types.h" 7#include "common/common_types.h"
8#include "common/quaternion.h" 8#include "common/quaternion.h"
9#include "common/vector_math.h" 9#include "common/vector_math.h"
10#include "core/frontend/input.h"
10 11
11namespace InputCommon { 12namespace InputCommon {
12 13
@@ -37,6 +38,8 @@ public:
37 Common::Vec3f GetGyroscope() const; 38 Common::Vec3f GetGyroscope() const;
38 Common::Vec3f GetRotations() const; 39 Common::Vec3f GetRotations() const;
39 Common::Quaternion<f32> GetQuaternion() const; 40 Common::Quaternion<f32> GetQuaternion() const;
41 Input::MotionStatus GetMotion() const;
42 Input::MotionStatus GetRandomMotion(int accel_magnitude, int gyro_magnitude) const;
40 43
41 bool IsMoving(f32 sensitivity) const; 44 bool IsMoving(f32 sensitivity) const;
42 bool IsCalibrated(f32 sensitivity) const; 45 bool IsCalibrated(f32 sensitivity) const;