예제 #1
0
    internal void SetValue(float value, ulong updateTick)
    {
        if (updateTick > pendingTick)
        {
            lastState = thisState;
            nextState.Reset();
            pendingTick   = updateTick;
            pendingCommit = true;
        }

        nextState.RawValue = value;
        nextState.Set(value, stateThreshold);
    }
예제 #2
0
 public void ClearInputState()
 {
     lastState.Reset();
     thisState.Reset();
     nextState.Reset();
 }