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