/// <summary> /// Stops the engine. This will disconnect with the HID device. /// </summary> public static void Stop() { SendRawHIDMessage(RawHIDMessage.HID_DISCONNECTED); HIDManager.StopListening(); }
private static void HIDManager_OnDisconnected(object sender, EventArgs e) { HIDManager.StopListening(); OnDisconnected?.Invoke(typeof(Engine), new EventArgs()); }