Avoid mouse disabled when using gamepad

Hello,

I have a UMG menu and I want it to be compatible wiht mouse, keyboard and gamepad controller, but whenever I press a button on my gamepad, the mouse input stops being captured anymore.
Is there something to fix this?

Cheers,

A potential quick fix (I don’t have the engine open right now) is to get the player controller and set show mouse cursor to true on the widget tick.

Make sure that if you want to hide it when the widget gets destroyed that you set the same variable to false on event destruct.

My bad, I was setting the visibility of the widget to “Hit Test Invisible” when using the gamepad