From 5ff77f9c882acdec1bd673d883dded9d219b8fa0 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Fri, 18 Jan 2013 13:40:54 -0600 Subject: [PATCH] Fix emulated turntable crossfade slider. (DJ Hero controller) Fixes issue 4504. --- Source/Core/Core/Src/HW/WiimoteEmu/Attachment/Turntable.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/Src/HW/WiimoteEmu/Attachment/Turntable.cpp b/Source/Core/Core/Src/HW/WiimoteEmu/Attachment/Turntable.cpp index 292d9c5a86..182170f501 100644 --- a/Source/Core/Core/Src/HW/WiimoteEmu/Attachment/Turntable.cpp +++ b/Source/Core/Core/Src/HW/WiimoteEmu/Attachment/Turntable.cpp @@ -97,8 +97,9 @@ void Turntable::GetState(u8* const data, const bool focus) // crossfade slider { - u8 cfs = 0; - m_crossfade->GetState(&cfs, 8, 7); + s8 cfs = 0; + m_crossfade->GetState(&cfs, focus ? 7 : 0); + cfs += 8; ttdata->slider = cfs; }