示例#1
0
 internal void EnableHooks()
 {
     if (hookManager.EnableHook())
     {
         hookManager.RegisterMouseHandler(Mouse.HandleInput);
         hookManager.RegisterKeyboardHandler(Keyboard.HandleInput);
     }
 }
示例#2
0
 internal void EnableHooks()
 {
     if (_hookManager.EnableHook())
     {
         _hookManager.RegisterMouseHandler(Mouse.HandleInput);
         _hookManager.RegisterKeyboardHandler(Keyboard.HandleInput);
     }
     else
     {
         Logger.Error("Failed to acquire hook!");
     }
 }