public void Poll() { SafetyHook.Poll(); lock (Lock) { if (HookState > 0 && (TimeStamp.Now - UnstableStateTime).TotalSeconds >= 2) { Input.RegisterHook(); HookState = 0; } else if (HookState < 0 && (TimeStamp.Now - UnstableStateTime).TotalSeconds >= 2) { HookState = 0; } } }
public void UnregisterAllHotkeys() { RegisteredKeys.Clear(); SafetyHook.UnregisterAllHotkeys(); }