internal static void Terminate() { DualityEditorApp.Idling -= DualityEditorApp_Idling; // Remove global message filter Application.RemoveMessageFilter(inputFilter); inputFilter.MouseMove -= inputFilter_MouseMove; inputFilter.MouseLeave -= inputFilter_MouseLeave; inputFilter.KeyDown -= inputFilter_KeyDown; inputFilter.MouseUp -= inputFilter_MouseUp; inputFilter = null; }
internal static void Init() { LoadXmlCodeDoc(); // Hook global message filter inputFilter = new InputEventMessageFilter(); inputFilter.MouseMove += inputFilter_MouseMove; inputFilter.MouseLeave += inputFilter_MouseLeave; inputFilter.KeyDown += inputFilter_KeyDown; inputFilter.MouseUp += inputFilter_MouseUp; Application.AddMessageFilter(inputFilter); DualityEditorApp.Idling += DualityEditorApp_Idling; }