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:
parent
3d1a7737d8
commit
9f9afeb63e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue