internal TimedButtonState NextState(bool down, TimeSpan elapsed) { return(new TimedButtonState(State.NextState(down), down ? TimePressed + elapsed : TimeSpan.Zero)); }
internal TimedAnalogButtonState NextState(float value, TimeSpan elapsed) { var down = value > TriggerThreshold; return(new TimedAnalogButtonState(value, State.NextState(down), down ? TimePressed + elapsed : TimeSpan.Zero)); }