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