summaryrefslogtreecommitdiffstats
path: root/src/input_common
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-11-15 20:18:09 +0100
committerLioncash <mathew1800@gmail.com>2020-11-15 20:18:09 +0100
commitcb826bcee74c393f5f13856bebfb9cb60ba51851 (patch)
tree9ac33d0fc8abc64acb621de6972d901ab44c76c6 /src/input_common
parentMerge pull request #4910 from lioncash/service (diff)
downloadyuzu-cb826bcee74c393f5f13856bebfb9cb60ba51851.tar
yuzu-cb826bcee74c393f5f13856bebfb9cb60ba51851.tar.gz
yuzu-cb826bcee74c393f5f13856bebfb9cb60ba51851.tar.bz2
yuzu-cb826bcee74c393f5f13856bebfb9cb60ba51851.tar.lz
yuzu-cb826bcee74c393f5f13856bebfb9cb60ba51851.tar.xz
yuzu-cb826bcee74c393f5f13856bebfb9cb60ba51851.tar.zst
yuzu-cb826bcee74c393f5f13856bebfb9cb60ba51851.zip
Diffstat (limited to 'src/input_common')
-rw-r--r--src/input_common/motion_input.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/input_common/motion_input.h b/src/input_common/motion_input.h
index abb957f04..ce7ab7f9b 100644
--- a/src/input_common/motion_input.h
+++ b/src/input_common/motion_input.h
@@ -33,16 +33,17 @@ public:
void UpdateRotation(u64 elapsed_time);
void UpdateOrientation(u64 elapsed_time);
- std::array<Common::Vec3f, 3> GetOrientation() const;
- Common::Vec3f GetAcceleration() const;
- 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;
+ [[nodiscard]] std::array<Common::Vec3f, 3> GetOrientation() const;
+ [[nodiscard]] Common::Vec3f GetAcceleration() const;
+ [[nodiscard]] Common::Vec3f GetGyroscope() const;
+ [[nodiscard]] Common::Vec3f GetRotations() const;
+ [[nodiscard]] Common::Quaternion<f32> GetQuaternion() const;
+ [[nodiscard]] Input::MotionStatus GetMotion() const;
+ [[nodiscard]] Input::MotionStatus GetRandomMotion(int accel_magnitude,
+ int gyro_magnitude) const;
+
+ [[nodiscard]] bool IsMoving(f32 sensitivity) const;
+ [[nodiscard]] bool IsCalibrated(f32 sensitivity) const;
private:
void ResetOrientation();