/// <summary>
        /// Stop the IR Server plugin.
        /// </summary>
        public override void Stop()
        {
            if (_diListener != null)
            {
                _diListener.DeInitDevice();
                _diListener.StopListener();

                _diListener.OnStateChange -= diListener_OnStateChange;
                _diListener = null;
            }

            _deviceList = null;
        }
Exemplo n.º 2
0
        private void StopListener()
        {
            IrssLog.Debug("DirectInput: Stop listening...");

            if (_diListener != null)
            {
                _diListener.DeInitDevice();
                _diListener.StopListener();

                _diListener.OnStateChange -= diListener_OnStateChange;
                _diListener = null;
            }

            _deviceList = null;
        }
Exemplo n.º 3
0
 private void Configure_FormClosed(object sender, FormClosedEventArgs e)
 {
     _diListener.DeInitDevice();
     _diListener = null;
 }