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(); }
public void UnregisterAllHotkeys() { RegisteredButtons.Clear(); KeyboardHook.UnregisterAllHotkeys(); }
public void RegisterHotKey(Keys key) { KeyboardHook.RegisterHotKey(key); }
public void Poll() { GamepadHook.Poll(); KeyboardHook.Poll(); }
public void Poll() { KeyboardHook.Poll(); }