Пример #1
0
 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;
         }
     }
 }
Пример #2
0
 public void UnregisterAllHotkeys()
 {
     RegisteredKeys.Clear();
     SafetyHook.UnregisterAllHotkeys();
 }