/// <summary> /// Creates the hooks and adds the listeners /// </summary> void AddHooks() { _hooks = new Hooks(); _input = new Input(); _input.OnKeysChanged += UpdateText; _hooks.OnKeyDown += _input.OnButtonDown; _hooks.OnKeyUp += _input.OnButtonUp; _hooks.OnMouseDown += _input.OnMouseDown; _hooks.OnMouseUp += _input.OnMouseUp; _hooks.OnMouseScroll += _input.OnMouseScroll; _hooks.OnMouseMove += _input.OnMouseMove; _hooks.EnableHooks(); }