Beispiel #1
0
 public bool KeyPressed(Keys key)
 {
     return downCurr[(int)key] && !downPrev[(int)key] && !masked[(int)key];
 }
Beispiel #2
0
 public bool KeyToggled(Keys key)
 {
     return toggled[(int)key];
 }
Beispiel #3
0
 public bool KeyDown(Keys key)
 {
     return downCurr[(int)key] && !masked[(int)key];
 }
Beispiel #4
0
 public bool KeyReleased(Keys key)
 {
     return !downCurr[(int)key] && downPrev[(int)key] && !masked[(int)key];
 }