I'm at work so I couldn't spend a lot of time looking at this, but I found a link to how I compiled some kernel modules for mouse and keyboard support
https://www.mobileread.com/forums/sh...=277236&page=5
It's been a few years so I imagine some stuff has changed. But hopefully it gives you a starting point.
I didn't ever look into getting the headers to load automatically. I had to do 'insmod' I think, and some people have made Kual plug-ins for the usb side if you look I to that thread