From 9f9afeb63e912dd71e3e58338c7b4f3c03b3d6bc Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sun, 26 Nov 2017 12:33:48 -0600 Subject: [PATCH] Wiimote Emulation: Be able to trigger swings consistently by holding down buttons. This makes certain actions easier (tested with Red Steel) --- Source/Core/InputCommon/ControllerEmu/ControlGroup/Force.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/Force.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/Force.cpp index 46dbd63c49..0c27e30298 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/Force.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/Force.cpp @@ -40,10 +40,7 @@ void Force::GetState(ControlState* axis) controls[i + 1]->control_ref->State() - controls[i]->control_ref->State(); if (fabs(state) > deadzone) tmpf = ((state - (deadzone * sign(state))) / (1 - deadzone)); - - ControlState& ax = m_swing[i >> 1]; - *axis++ = (tmpf - ax); - ax = tmpf; + *axis++ = tmpf; } } } // namespace ControllerEmu