private void StartEventTracing() { if (m_EventTrace != null) { m_EventTrace.Dispose(); } m_EventCount = 0; m_EventQueue.Clear(); m_EventTrace = new InputEventTrace() { deviceId = m_Device.deviceId }; m_EventTrace.onEvent += M_EventTrace_onEvent;; m_EventTrace.Enable(); }
void DisableTrace() { if (Trace != null) { Trace.Dispose(); Trace = null; } }