Exemplo n.º 1
0
        public void Close()
        {
            if (IsEnabled && joystick != null)
            {
                Debug.WriteLine("IP: GenericJoystick  Close(): unacquiring joystick...");

                joystick.joystickEvent -= XBox360Controller_JoystickEvent;
                //joystick.SetNotification(null);
                //joystick.Unacquire();
                joystick.Dispose();
                IsEnabled = false;
                joystick  = null;
            }
        }