Esempio n. 1
0
 public bool isKeyReleased(Keys key)
 {
     return(_currentKeyboardState.IsKeyUp(key) && _previousKeyboardState.IsKeyDown(key));
 }
Esempio n. 2
0
 public bool isKeyHolding(Keys key)
 {
     return(_currentKeyboardState.IsKeyDown(key) && _previousKeyboardState.IsKeyDown(key));
 }