It might be worth trying with WebHID instead of the GamePad API. Quick example with a joystick :)
https://murkle.github.io/utils/webhid/logitech_attack3.html