How to inject/simulate mouse clicks?

Could you let me know how you managed to control the cursor in the UMG menu with your gamepad? Cause I’m struggling here haha.