Switching between mouse and gamepad navigation in UI

I am making a main menu, and I wish to toggle between gamepad navigation and mouse navigation.

I run a function each tick in the widget that toggles mouse navigation on when mouse is moved:

And in the player controller I have an input event from gamepad that cycles through the buttons in the menu and disables mouse navigation if it is enabled.

What I need help with is how to update the mouse position to the position of the active button when I cycle up or down with gamepad so I get the hover effect on the buttons.

I also need input on how to properly hide the mouse cursor, currently I just set “show mouse cursor” to false in the player controller, and this seems to work, but I’m not sure if this is the best way to do it.

I don’t want to use Set Focused, because this looks incredibly ugly and I want to have it behave the “same” way when you navigate with a gamepad and a gamepad.

Any help is greatly appreciated

Fixed, made my own buttons instead of using the prepackaged ones.