Gamepad not working in packaged game

Hi,

I am working on a game supporting both mouse-key and gamepad. In launch game or IPE, both mouse-key and gamepad works as expected; but when I packaged my game, mouse-key works fine, but there is no gamepad input.

I try “SetFoucsToGameViewport” and “Click window before using gamepad” or other “Focus related” solution, gamepad just not working in my packaged game.

If someone possible know this please help me.
Thanks in advance.

After I comment some code about cursor style and visibility, problem solved.
I not should about this, but gamepad works fine for me now.

Update 1: It seems steam block my gamepad input.

Could you expand on that? How was steam blocking your gamepad input?