go-hookprovides low level keyboard and mouse hook for Windows. This package is written in pure Go, cgo is not required.
Note: The package is currently tested on Windows 10 64bit edition. Other versions of Windows are not guaranteed to work.
Go 1.13 or later
Examples are stored in examples directory.
mouse: Capturing mouse events.keyboard: Capturing keyboard events.swapkeys: Swapping the keyboard input 'A' and 'B".
- Fork (https://github.com/moutend/go-hook/fork)
- Create a feature branch
- Add changes
- Run
go fmt - Commit your changes
- Open a new Pull Request
MIT