/// <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; }
private void StopListener() { IrssLog.Debug("DirectInput: Stop listening..."); if (_diListener != null) { _diListener.DeInitDevice(); _diListener.StopListener(); _diListener.OnStateChange -= diListener_OnStateChange; _diListener = null; } _deviceList = null; }
private void Configure_FormClosed(object sender, FormClosedEventArgs e) { _diListener.DeInitDevice(); _diListener = null; }