From 4d1f113ab15c051368d4de9c50c0f4e8188f25f1 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Wed, 25 Dec 2013 15:33:33 -0600 Subject: [PATCH] Fix some emulated wiimote turntable stupidness (DJ Hero controller). Happy Christmas! Fixed issue 6865. --- .../Core/Src/HW/WiimoteEmu/Attachment/Turntable.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/Core/Core/Src/HW/WiimoteEmu/Attachment/Turntable.cpp b/Source/Core/Core/Src/HW/WiimoteEmu/Attachment/Turntable.cpp index 83047114bc..e866c3b6df 100644 --- a/Source/Core/Core/Src/HW/WiimoteEmu/Attachment/Turntable.cpp +++ b/Source/Core/Core/Src/HW/WiimoteEmu/Attachment/Turntable.cpp @@ -76,7 +76,7 @@ void Turntable::GetState(u8* const data, const bool focus) m_left_table->GetState(&tt, focus ? 0x1F : 0); ttdata->ltable1 = tt; - ttdata->ltable2 = tt << 5; + ttdata->ltable2 = tt >> 5; } // right table @@ -85,9 +85,9 @@ void Turntable::GetState(u8* const data, const bool focus) m_right_table->GetState(&tt, focus ? 0x1F : 0); ttdata->rtable1 = tt; - ttdata->rtable2 = tt << 1; - ttdata->rtable3 = tt << 3; - ttdata->rtable4 = tt << 5; + ttdata->rtable2 = tt >> 1; + ttdata->rtable3 = tt >> 3; + ttdata->rtable4 = tt >> 5; } // effect dial @@ -96,7 +96,7 @@ void Turntable::GetState(u8* const data, const bool focus) m_effect_dial->GetState(&dial, focus ? 0xF : 0); ttdata->dial1 = dial; - ttdata->dial2 = dial << 3; + ttdata->dial2 = dial >> 3; } // crossfade slider