summaryrefslogtreecommitdiffstats
path: root/src/input_common/motion_emu.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-02-27 04:31:15 +0100
committerLioncash <mathew1800@gmail.com>2019-02-27 04:31:17 +0100
commita1574aabd510d5fdc3842780b1d833aa2fb8eac6 (patch)
treea8e990d67681629fd5383263180cbceb85582695 /src/input_common/motion_emu.cpp
parentMerge pull request #2164 from ReinUsesLisp/configure-blit (diff)
downloadyuzu-a1574aabd510d5fdc3842780b1d833aa2fb8eac6.tar
yuzu-a1574aabd510d5fdc3842780b1d833aa2fb8eac6.tar.gz
yuzu-a1574aabd510d5fdc3842780b1d833aa2fb8eac6.tar.bz2
yuzu-a1574aabd510d5fdc3842780b1d833aa2fb8eac6.tar.lz
yuzu-a1574aabd510d5fdc3842780b1d833aa2fb8eac6.tar.xz
yuzu-a1574aabd510d5fdc3842780b1d833aa2fb8eac6.tar.zst
yuzu-a1574aabd510d5fdc3842780b1d833aa2fb8eac6.zip
Diffstat (limited to '')
-rw-r--r--src/input_common/motion_emu.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/input_common/motion_emu.cpp b/src/input_common/motion_emu.cpp
index 9570c060e..defb1a567 100644
--- a/src/input_common/motion_emu.cpp
+++ b/src/input_common/motion_emu.cpp
@@ -85,8 +85,8 @@ private:
void MotionEmuThread() {
auto update_time = std::chrono::steady_clock::now();
- Math::Quaternion<float> q = MakeQuaternion(Math::Vec3<float>(), 0);
- Math::Quaternion<float> old_q;
+ Common::Quaternion<float> q = Common::MakeQuaternion(Math::Vec3<float>(), 0);
+ Common::Quaternion<float> old_q;
while (!shutdown_event.WaitUntil(update_time)) {
update_time += update_duration;
@@ -96,8 +96,8 @@ private:
std::lock_guard<std::mutex> guard(tilt_mutex);
// Find the quaternion describing current 3DS tilting
- q = MakeQuaternion(Math::MakeVec(-tilt_direction.y, 0.0f, tilt_direction.x),
- tilt_angle);
+ q = Common::MakeQuaternion(Math::MakeVec(-tilt_direction.y, 0.0f, tilt_direction.x),
+ tilt_angle);
}
auto inv_q = q.Inverse();