I need to programatically "click" on items using the joystick. I've attempted a few methods to cause a left mouse click on whatever the mouse cursor is hovering over but I have had no luck. Here is what I've tried so far:
if event.is_action_pressed("ui_accept"):
Input.action_press("mouse_click")
And
if event.is_action_pressed("ui_accept"):
event.set_as_action("mouse_click", true)
"mouse_click" is simply set to the left mouse button in the Input Mappings. So it most likely isn't actually triggering a true click event. My game has lots of control widgets and I can't think of an easy way outside of causing a mouse down signal to know what the the user intends to click on.