I've come across a small problem where i have a start screen that sets a variable to either "mouse" or "touch" depending on which interaction has been done. This works fine and the main screen loads.
The issue for me is that i'm not sure of which is the best approach when trying to resolve the input method? In my code i try to use both according to the top part of this image:
<img src="http://i.imgur.com/rGwprLv.png" border="0" />
The code above is the way i tried first, that is if the mouse is over OR touch i touching. However, they seem to conflict and only the touch works. So underneath it you see the approach that did work but since i am using one event sheet for my whole game, there is a risk that i will have to put it a lot of input checks.
My question is if there is a better way, perhaps somehow to utilize a function for these repeating checks?