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