[Tutorial] How to control UMG widget that uses mouse cursor with both mouse and gamepad

How do I press a button from the gamepad? Since the button detects when they click, but to do it with gamepad I do not know the way to simulate the same action.