Exemple #1
0
 public PrimaryHook(IInputHook targetHook)
 {
     _hookProcedureFunction = HookProcedure; // So the garbage collector does not free the procedure.
     _targetHook            = targetHook;
     Env.App.Run           += Register;
     Env.App.Exiting       += _targetHook.Reset;
     Env.App.Unhook        += () =>
     {
         _hookHandle?.Dispose();
         _mouseHookHandle?.Dispose();
     };
 }
Exemple #2
0
 public InputRelay(IInputHook targetHook)
 {
     _targetHook = targetHook;
     _enabled    = true;
 }
Exemple #3
0
 public TestInjector(IInputHook targetHook)
 {
     _targetHook = targetHook;
 }
 public TestPrimaryHook(IInputHook targetHook)
 {
     _targetHook = targetHook;
 }