public void Dispose() { MouseHook.Hook.Enabled = false; MouseHook.Hook.OnMouseMessage -= mouseHook_OnMouseMessage; Microsoft.Win32.SystemEvents.DisplaySettingsChanged -= SystemEvents_DisplaySettingsChanged; Instance = null; }
static NonStuckMouse() { Instance = new NonStuckMouse(); Instance.Init(); }