diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2020-01-21 18:50:05 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2020-02-17 16:14:01 -0600 |
| commit | 58448d74c541d8081bafff4d35940281db88c610 (patch) | |
| tree | 92444ee99d0e9fd6ccd7de68a3f2e31a652bfa05 /Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp | |
| parent | 4176cc77e1c3627ceee7b849195f026efc1bf9ca (diff) | |
InputCommon: Add real Wii Remote support to ControllerInterface. Add option to connect additional Wii Remotes.
Diffstat (limited to 'Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp b/Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp index 3030601331..e6549e48d6 100644 --- a/Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp +++ b/Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp @@ -806,9 +806,8 @@ void GyroMappingIndicator::paintEvent(QPaintEvent*) const auto jitter = raw_gyro_state - m_previous_velocity; m_previous_velocity = raw_gyro_state; - m_state *= Common::Matrix33::FromQuaternion(angular_velocity.x / -INDICATOR_UPDATE_FREQ / 2, - angular_velocity.y / INDICATOR_UPDATE_FREQ / 2, - angular_velocity.z / -INDICATOR_UPDATE_FREQ / 2, 1); + m_state *= WiimoteEmu::GetMatrixFromGyroscope(angular_velocity * Common::Vec3(-1, +1, -1) / + INDICATOR_UPDATE_FREQ); // Reset orientation when stable for a bit: constexpr u32 STABLE_RESET_STEPS = INDICATOR_UPDATE_FREQ; |
