Exemple #1
0
        public static ModifiedPressedAction NewModifiedPressedAction(Keys modifier, params Keys[] keys)
        {
            var action = new ModifiedPressedAction(state)
            {
                Modifier = modifier
            };

            action.Keys.AddRange(keys);
            return(action);
        }
Exemple #2
0
 public CommandQueue()
 {
     undo = InputManager.NewModifiedPressedAction(Keys.LeftControl, Keys.Z);
     redo = InputManager.NewModifiedPressedAction(Keys.LeftControl, Keys.Y);
 }