Exemple #1
0
 public bool KeyEvent(KeyCode keyCode, ModifierKeyState state)
 {
     if (state.Ctrl && keyCode == KeyCode.Z)
     {
         InvertApplication.Execute(new UndoCommand());
         return(true);
     }
     if (state.Ctrl && keyCode == KeyCode.Y)
     {
         InvertApplication.Execute(new RedoCommand());
         return(true);
     }
     return(false);
 }
Exemple #2
0
 public MouseEvent(ModifierKeyState modifierKeyStates, IInputHandler defaultHandler)
 {
     ModifierKeyStates = modifierKeyStates;
     DefaultHandler    = defaultHandler;
 }
Exemple #3
0
 public MouseEvent(ModifierKeyState modifierKeyStates)
 {
     ModifierKeyStates = modifierKeyStates;
 }
Exemple #4
0
 public MouseEvent()
 {
     ModifierKeyStates = new ModifierKeyState();
 }