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