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