public float GetAxis(AxisControl control) { float axisValue = 0f; foreach (AxisCode code in keyBinding.GetAxisCodes(control)) { axisValue = gamepad.GetAxis(code); if (!axisValue.Equals(0f)) { return(axisValue); } } return(0f); }
public float GetAxis(AxisControl control) { float axisValue = 0f; foreach (AxisCode code in keyBinding.GetAxisCodes(control)) { axisValue = gamepad.GetAxis(code); if (!axisValue.Equals(0f)) { return(axisValue); } } return(0f); }