public static GamePadCapabilitiesEx GetCapabilities(PlayerIndex playerIndex)
 {
     if (GamePadEx.IsKeyboardPlayerIndex(playerIndex))
     {
         return(GamePadCapabilitiesEx.KeyboardCapabilities);
     }
     else
     {
         return
             (new GamePadCapabilitiesEx(GamePad.GetCapabilities(playerIndex)));
     }
 }
 public static GamePadState GetState(
     PlayerIndex playerIndex,
     GamePadDeadZone deadZoneMode)
 {
     if (GamePadEx.IsKeyboardPlayerIndex(playerIndex))
     {
         return(GamePadEx.EmulateGamePadState());
     }
     else
     {
         return(GamePad.GetState(playerIndex, deadZoneMode));
     }
 }
 public static bool SetVibration(
     PlayerIndex playerIndex,
     float leftMotor,
     float rightMotor)
 {
     if (GamePadEx.IsKeyboardPlayerIndex(playerIndex))
     {
         return(false);
     }
     else
     {
         return(GamePad.SetVibration(
                    playerIndex,
                    leftMotor,
                    rightMotor));
     }
 }
 public static GamePadState GetState(PlayerIndex playerIndex)
 {
     return(GamePadEx.GetState(
                playerIndex,
                GamePadDeadZone.IndependentAxes));
 }