Wiimote Emulation: Be able to trigger swings consistently by holding down buttons. This makes certain actions easier (tested with Red Steel)

This commit is contained in:
iwubcode 2017-11-26 12:33:48 -06:00
parent 3d1a7737d8
commit 9f9afeb63e

View File

@ -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