コード例 #1
0
ファイル: KeyboardContext.cs プロジェクト: ukitake/Stratum
 public bool WasKeyReleased(Keys key)
 {
     return previousState.IsKeyDown(key) && currentState.IsKeyUp(key);
 }
コード例 #2
0
ファイル: KeyboardContext.cs プロジェクト: ukitake/Stratum
 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);
 }