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