Example #1
0
 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();
 }
Example #2
0
 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();
 }