gamepad in viewport not working when widget is added to viewport

The title is self explanatory. My gamepad works fine until I add a widget named HUD to the viewport, then I can’t press my left gamepad anymore, until I decide to disconnect the widget again.
Any help is appreciated.