Example #1
0
        public void AddToFrame(int frame, ButtonPress bp)
        {
            ControllerState currentState = HasFrame(frame) ? _moveDict[frame] : new ControllerState(frame);

            currentState.Add(bp);
            _moveDict[frame] = currentState;
        }
Example #2
0
        public void AddToFrame(int frame, HashSet <ButtonPress> set)
        {
            ControllerState currentState = HasFrame(frame) ? _moveDict[frame] : new ControllerState(frame);

            foreach (ButtonPress bp in set)
            {
                currentState.Add(bp);
            }
            _moveDict[frame] = currentState;
        }