Example #1
0
 public static bool IsKeyUp(JOYKEYS key)
 {
     return(!PadState.IsKeyDown(key));
 }
Example #2
0
 public static bool IsKeyDown(JOYKEYS key)
 {
     return((PadState.buttons & PadState.set[key]) == PadState.set[key]);
 }
Example #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]);
 }