I'm adding this here so you don't have to figure it out.
It works great on Linux (I had to get the "joystick" lib first as I'm on Pop_OS) and should be the same on other OSs
when you use the gamepad camera shelf tool, you'll find the setting to re-map here:
/obj/cam1/constraints/devicetransform