Skip to content
Permalink
Browse files

Apply sideways and upright wiimote settings to accelerometer and gyro.

  • Loading branch information...
rlnilsen committed Sep 10, 2019
1 parent d3fb54d commit 0e529f06b9a7ed466ec6dc94a1031bce91c8d0d7
Showing with 2 additions and 2 deletions.
  1. +2 −2 Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.cpp
@@ -445,7 +445,7 @@ void Wiimote::SendDataReport()
{
Common::Vec3 acceleration;
if (m_motionsource == MotionSource::IMU)
acceleration = m_imu_accelerometer->GetState();
acceleration = GetOrientation() * m_imu_accelerometer->GetState();
else
acceleration = GetAcceleration();

@@ -489,7 +489,7 @@ void Wiimote::SendDataReport()
{
Common::Vec3 angular_velocity;
if (m_motionsource == MotionSource::IMU)
angular_velocity = m_imu_gyro->GetState();
angular_velocity = GetOrientation() * m_imu_gyro->GetState();
else
angular_velocity = GetAngularVelocity();

0 comments on commit 0e529f0

Please sign in to comment.
You can’t perform that action at this time.