示例#1
0
        /// <summary>
        /// retirer un gamepad
        /// </summary>
        /// <param name="gamepad"></param>

        public void RemoveGamepad(Gamepad gamepad)
        {
            gamepad.Stop();

            this.Gamepads.Remove(gamepad);
        }
示例#2
0
        /// <summary>
        /// Ajouter un gamepad
        /// </summary>
        /// <param name="gamepad"></param>

        public void AddGamepad(Gamepad gamepad)
        {
            this.Gamepads.Add(gamepad);
            gamepad.Start(Machine);
        }