Map Mouse Buttons using hidutil, how to find Keycodes?

Not possible with hidutil, but I wrote a small Daemon with very low resource consumption doing this: https://github.com/winkelsdorf/MouseEnhancer