Example #1
0
 /** <summary> Returns true if the control is up. </summary> */
 public override bool Up()
 {
     return((Ctrl != (Keyboard.IsKeyDown(Keys.LCtrl) || Keyboard.IsKeyDown(Keys.RCtrl))) ||
            (Shift != (Keyboard.IsKeyDown(Keys.LShift) || Keyboard.IsKeyDown(Keys.RShift))) ||
            (Alt != (Keyboard.IsKeyDown(Keys.LAlt) || Keyboard.IsKeyDown(Keys.RAlt))) ||
            Keyboard.IsKeyUp(KeyCode));
 }
Example #2
0
 public override bool Up()
 {
     return(Keyboard.IsKeyUp(KeyCode));
 }