예제 #1
0
        public Mi360Application()
        {
            InitializeComponents();

            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;

            _Manager = new XInputManager();
            _Manager.GamepadRunning += Manager_GamepadRunning;
            _Manager.GamepadRemoved += Manager_GamepadRemoved;

            _Monitor = new HidMonitor(XiaomiGamepadHardwareFilter);
            _Monitor.DeviceAttached += Monitor_DeviceAttached;
            _Monitor.DeviceRemoved  += Monitor_DeviceRemoved;
            _Monitor.Start();

            _Logger.Information("mi-360 is running");
        }