Permalink
Browse files

Wiimote Emulation: Be able to trigger swings consistently by holding …

…down buttons. This makes certain actions easier (tested with Red Steel)
  • Loading branch information...
iwubcode committed Nov 26, 2017
1 parent 3d1a773 commit 9f9afeb63e912dd71e3e58338c7b4f3c03b3d6bc
Showing with 1 addition and 4 deletions.
  1. +1 −4 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

0 comments on commit 9f9afeb

Please sign in to comment.