Reset() публичный Метод

public Reset ( ) : void
Результат void
Пример #1
0
        void PrepareForUpdate(ulong updateTick)
        {
            if (this == InputControl.Null)
            {
                return;
            }

            if (updateTick < pendingTick)
            {
                throw new InvalidOperationException("Cannot be updated with an earlier tick.");
            }

            if (pendingCommit && updateTick != pendingTick)
            {
                throw new InvalidOperationException("Cannot be updated for a new tick until pending tick is committed.");
            }

            if (updateTick > pendingTick)
            {
                lastState = thisState;
                nextState.Reset();
                pendingTick   = updateTick;
                pendingCommit = true;
            }
        }
Пример #2
0
        internal void PreUpdate(ulong updateTick)
        {
            RawValue = null;
            PreValue = null;

            lastState = thisState;
            tempState.Reset();
        }
Пример #3
0
 public void ClearInputState()
 {
     lastState.Reset();
     thisState.Reset();
     nextState.Reset();
     wasRepeated     = false;
     clearInputState = true;
 }
Пример #4
0
 internal void PreUpdate(ulong updateTick)
 {
     lastState = thisState;
     tempState.Reset();
 }