Using an UI Image as a Mouse Alternative
Hey!
I'm trying to implement controller support into my game, a point and click adventure game. So far, I have a UI image that can be moved with the mouse, and when the mouse isn't moving, also the Horizontal/Vertical Axis. There is one difficulty however: Interacting with buttons. Is there any way to interact with a button (hovering over it, clicking down). I've been searching for hours, however all questions asked were about using the mouse to click objects in all kinds of different ways, which works with buttons and OnPointer(...) with Event Triggers, but I didn't manage to find any help for my problem. Perhaps by sending a raycast from the Image? Also, I think it might be best to not emulate a mouse click since this would limit the usage of this to PC or Mac and not to f.e. console, so maybe it's better to search for the possibility of adding methods with which the button can get the "input" to do its thing? Is what I'm attempting even possible?
Thanks for any help!
Edit: Seems like I might be able to use the Pointer (OnPointerEnter, etc.) if I figure out if programming a custom pointer is possible... Is it?