The gamepad I am using is an official PS4 controller connected by bluetooth. I tried it with Steam and a game I've made in Unity and it worked. Then I tried it in Godot, with the game I've made for this game jam, and it did not work. So I think that it is a problem with Godot rather than a problem with your game :) I will check if a similar issue was reported on their Github.