예제 #1
0
        /// <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);
예제 #5
0
 public static extern XBox360GamepadState PowerOffGamepad(XBox360PlayerIndex playerIndex);
예제 #6
0
 private static extern XBox360GamepadState GetGamepad(XBox360PlayerIndex playerIndex, out XBox360Gamepad gamepad);