Пример #1
0
        public void Run()
        {
            Console.WriteLine("== XBOX CONTROLLER ==");

            _controller = new XboxController();
            _controller.PropertyChanged += ControllerPropertyChanged;

            _controller.RunStatusChecker();

//            while (true)
//            {
//                var msg = _controller.GetControllerInformation();
//                Console.WriteLine(msg);
//            }

            Console.ReadLine();
        }
Пример #2
0
 public void AttachController(XboxController controller)
 {
     _xboxController = controller;
     _xboxController.PropertyChanged += ControllerPropertyChanged;
     _xboxController.RunStatusChecker();
 }