Seeing as some people replied here, I did come up with a janky work around “solution”.
-
I added a boolean variable to check whether the mouse is on the button or not, and change it accordingly using the Mouse Enter/Leave Events
-
Then I added a new Enhanced Action for listening to Left clicks (or whatever click you want to activate the button). If the “Highlighted” variable is true, then some event that emulates “OnClicked” is called.
-
One last thing that must be accounted for, is that if you use “On Mouse Leave” for anything else, then you need to catch whether the Mouse Button is down, since clicking on a widget always calls “On Mouse Leave” for some reason
I am sure the fancy stuff like changing colour can be done relatively easy with the Mouse Enter/Leave Events as well, but I didn’t bother.
This might cause some issues down the line like not being able to have multiple buttons in one widget, but at least this way Enhanced Input Actions are not cancelled.