I used to do this until MacOS stopped working with the game controllers I had. That really irked me.
Ultimately, I bought Streamdeck Mobile and use an iPad for touch-activation of a lot of KM macros–especially when I’m editing audio and video, and for arranging windows onscreen with the Magnet-Based Window Movers & Sizers .