Ejemplo n.º 1
0
 public static bool IsKeyUp(JOYKEYS key)
 {
     return(!PadState.IsKeyDown(key));
 }
Ejemplo n.º 2
0
 public static bool IsKeyDown(JOYKEYS key)
 {
     return((PadState.buttons & PadState.set[key]) == PadState.set[key]);
 }
Ejemplo n.º 3
0
 public static bool IsKeyPressed(JOYKEYS key, JOYBUTTONS pre)
 {
     return((PadState.buttons & PadState.set[key]) == PadState.set[key] && (pre & PadState.set[key]) != PadState.set[key]);
 }