예제 #1
0
 public bool WasKeyReleased(Keys key)
 {
     return previousState.IsKeyDown(key) && currentState.IsKeyUp(key);
 }
예제 #2
0
 public bool IsKeyDown(Keys key)
 {
     return currentState.IsKeyDown(key);
 }
예제 #3
0
 public bool WasKeyReleased(Keys key)
 {
     return(previousState.IsKeyDown(key) && currentState.IsKeyUp(key));
 }
예제 #4
0
 public bool IsKeyDown(Keys key)
 {
     return(currentState.IsKeyDown(key));
 }
예제 #5
0
 void platform_KeyReleased(SharpDX.Toolkit.Input.Keys key)
 {
     pressedKeys.Remove(key);
 }
예제 #6
0
 void platform_KeyPressed(SharpDX.Toolkit.Input.Keys key)
 {
     pressedKeys.Add(key);
 }