summaryrefslogtreecommitdiffstats
path: root/src/core/hid/motion_input.h
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-05-05 20:29:26 +0200
committerNarr the Reg <juangerman-13@hotmail.com>2023-05-05 21:53:38 +0200
commit46e835f2d6531baea061a2723d171a2f5a1abf6a (patch)
treedab41bff4babe44fd5850c6f5042090d7179bf82 /src/core/hid/motion_input.h
parentMerge pull request #10153 from FernandoS27/a-quickie-fixie (diff)
downloadyuzu-46e835f2d6531baea061a2723d171a2f5a1abf6a.tar
yuzu-46e835f2d6531baea061a2723d171a2f5a1abf6a.tar.gz
yuzu-46e835f2d6531baea061a2723d171a2f5a1abf6a.tar.bz2
yuzu-46e835f2d6531baea061a2723d171a2f5a1abf6a.tar.lz
yuzu-46e835f2d6531baea061a2723d171a2f5a1abf6a.tar.xz
yuzu-46e835f2d6531baea061a2723d171a2f5a1abf6a.tar.zst
yuzu-46e835f2d6531baea061a2723d171a2f5a1abf6a.zip
Diffstat (limited to 'src/core/hid/motion_input.h')
-rw-r--r--src/core/hid/motion_input.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hid/motion_input.h b/src/core/hid/motion_input.h
index 9f3fc1cf7..482719359 100644
--- a/src/core/hid/motion_input.h
+++ b/src/core/hid/motion_input.h
@@ -35,6 +35,7 @@ public:
void SetAcceleration(const Common::Vec3f& acceleration);
void SetGyroscope(const Common::Vec3f& gyroscope);
void SetQuaternion(const Common::Quaternion<f32>& quaternion);
+ void SetEulerAngles(const Common::Vec3f& euler_angles);
void SetGyroBias(const Common::Vec3f& bias);
void SetGyroThreshold(f32 threshold);
@@ -54,6 +55,7 @@ public:
[[nodiscard]] Common::Vec3f GetGyroBias() const;
[[nodiscard]] Common::Vec3f GetRotations() const;
[[nodiscard]] Common::Quaternion<f32> GetQuaternion() const;
+ [[nodiscard]] Common::Vec3f GetEulerAngles() const;
[[nodiscard]] bool IsMoving(f32 sensitivity) const;
[[nodiscard]] bool IsCalibrated(f32 sensitivity) const;