/// <summary> /// Get gamepad given a player/gamepad index /// </summary> /// <param name="playerIndex">Player/gamepad index</param> /// <returns>The corresponding gamepad</returns> public static XBox360Gamepad GetGamepad(XBox360PlayerIndex playerIndex) { XBox360Gamepad gamepad; GetGamepad(playerIndex, out gamepad); return(gamepad); }
/// <summary> /// Get gamepad given a player/gamepad index /// </summary> /// <param name="playerIndex">Player/gamepad index</param> /// <returns>The corresponding gamepad</returns> public static XBox360Gamepad GetGamepad(XBox360PlayerIndex playerIndex) { XBox360Gamepad gamepad; GetGamepad(playerIndex, out gamepad); return gamepad; }
public static extern XBox360GamepadState PowerOffGamepad(XBox360PlayerIndex playerIndex);
private static extern XBox360GamepadState GetGamepad(XBox360PlayerIndex playerIndex, out XBox360Gamepad gamepad);