コード例 #1
0
ファイル: Keyboard.cs プロジェクト: Zulkir/Beholder
 public bool KeyPressed(Keys key)
 {
     return downCurr[(int)key] && !downPrev[(int)key] && !masked[(int)key];
 }
コード例 #2
0
ファイル: Keyboard.cs プロジェクト: Zulkir/Beholder
 public bool KeyToggled(Keys key)
 {
     return toggled[(int)key];
 }
コード例 #3
0
ファイル: Keyboard.cs プロジェクト: Zulkir/Beholder
 public bool KeyDown(Keys key)
 {
     return downCurr[(int)key] && !masked[(int)key];
 }
コード例 #4
0
ファイル: Keyboard.cs プロジェクト: Zulkir/Beholder
 public bool KeyReleased(Keys key)
 {
     return !downCurr[(int)key] && downPrev[(int)key] && !masked[(int)key];
 }