simulate mouse click with gamepad button?

I am doing an UI and I want it to be used with a mouse pointer but also move the pointer with a gamepad and click with a gamepad button. I have the motion part solved, but for emulate the mouse click I must deal with custom booleans handling hover/unhover events and combine it with the action of the gamepad button to make the same ‘mouse click’ action…and I must implement the logic for every widget I want to Interact :frowning:

Is there a straight way to say gamepad button A = LEFT MOSUE BUTTON ?

i havent used it myself but you could look into CommonUI