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(); }; }
public InputRelay(IInputHook targetHook) { _targetHook = targetHook; _enabled = true; }
public TestInjector(IInputHook targetHook) { _targetHook = targetHook; }
public TestPrimaryHook(IInputHook targetHook) { _targetHook = targetHook; }