How do I create a direct relationship between touch and mouse events so that I don't have to modify hundreds of touch conditions.
For example, here's what I would imagine would be the simplest best way of doing it.
single touch = mouse hover
double touch = mouse left click
I have hundreds of instances of "Mouse" in my code and I'm sure I could modify each condition to have an "OR" something like if mouse click OR touch, cursor over button or touch coordinates over button etc.. but that would really suck having to program all that in and would bloat my code and be very tedious. My game has many buttons, hover events, and tons of actual pieces to interact with so there are a lot of events that require either clicking or hovering. I don't have any right clicks.
Does anyone have any recommendations? Preferably a couple events I could put in at the start of layout? I couldn't find anything online about this.