Idk about the controllers, maybe there is a utility to configure those out there somewhere, but as far as the Logitech mouse is concerned, there is Piper. Works perfectly on my G502.
Scroll down to releases.