summaryrefslogtreecommitdiff
path: root/src/input_common/motion_emu.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2019-02-26 22:47:49 -0500
committerGravatar Lioncash2019-02-27 03:38:39 -0500
commitb9238edd0d0bfa7c88ad81ef00347b5194ebed77 (patch)
tree73cbfa304b41edc3fc92f7b8e9bfb8832f701d49 /src/input_common/motion_emu.cpp
parentcommon/vector_math: Move Vec[x] types into the Common namespace (diff)
downloadyuzu-b9238edd0d0bfa7c88ad81ef00347b5194ebed77.tar.gz
yuzu-b9238edd0d0bfa7c88ad81ef00347b5194ebed77.tar.xz
yuzu-b9238edd0d0bfa7c88ad81ef00347b5194ebed77.zip
common/math_util: Move contents into the Common namespace
These types are within the common library, so they should be within the Common namespace.
Diffstat (limited to 'src/input_common/motion_emu.cpp')
-rw-r--r--src/input_common/motion_emu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/motion_emu.cpp b/src/input_common/motion_emu.cpp
index d5af05ee3..6d96d4019 100644
--- a/src/input_common/motion_emu.cpp
+++ b/src/input_common/motion_emu.cpp
@@ -45,7 +45,7 @@ public:
45 } else { 45 } else {
46 tilt_direction = mouse_move.Cast<float>(); 46 tilt_direction = mouse_move.Cast<float>();
47 tilt_angle = 47 tilt_angle =
48 std::clamp(tilt_direction.Normalize() * sensitivity, 0.0f, MathUtil::PI * 0.5f); 48 std::clamp(tilt_direction.Normalize() * sensitivity, 0.0f, Common::PI * 0.5f);
49 } 49 }
50 } 50 }
51 } 51 }
@@ -107,7 +107,7 @@ private:
107 107
108 // Find the angular rate vector in world space 108 // Find the angular rate vector in world space
109 auto angular_rate = ((q - old_q) * inv_q).xyz * 2; 109 auto angular_rate = ((q - old_q) * inv_q).xyz * 2;
110 angular_rate *= 1000 / update_millisecond / MathUtil::PI * 180; 110 angular_rate *= 1000 / update_millisecond / Common::PI * 180;
111 111
112 // Transform the two vectors from world space to 3DS space 112 // Transform the two vectors from world space to 3DS space
113 gravity = QuaternionRotate(inv_q, gravity); 113 gravity = QuaternionRotate(inv_q, gravity);