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