public LowLevelKeyboardHook()
 {
     RegisteredKeys = new List<Keys>();
     Input = new KeyboardInput();
     SafetyHook = new KeyboardHook();
     HookState = 0;
     Input.KeyBoardKeyPressed += Input_KeyBoardKeyPressed;
     SafetyHook.KeyPressed += SafetyHook_KeyPressed;
     Lock = new int();
 }
Beispiel #2
0
 public void UnregisterAllHotkeys()
 {
     RegisteredButtons.Clear();
     KeyboardHook.UnregisterAllHotkeys();
 }
Beispiel #3
0
 public void RegisterHotKey(Keys key)
 {
     KeyboardHook.RegisterHotKey(key);
 }
Beispiel #4
0
 public void Poll()
 {
     GamepadHook.Poll();
     KeyboardHook.Poll();
 }
Beispiel #5
0
 public void Poll()
 {
     KeyboardHook.Poll();
 }