internal TimedAnalogButtonState NextState(float value, float elapsed)
    {
        var down = value > TriggerThreshold;

        return(new TimedAnalogButtonState(value, State.NextState(down), down ? TimePressed + elapsed : 0));
    }
Beispiel #2
0
 internal TimedButtonState NextState(bool down, float elapsed)
 {
     return(new TimedButtonState(State.NextState(down), down ? TimePressed + elapsed : 0));
 }