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(); }
public void AttachController(XboxController controller) { _xboxController = controller; _xboxController.PropertyChanged += ControllerPropertyChanged; _xboxController.RunStatusChecker(); }