How do I know what square the mouse/stylist is over? 
I know there is TouchInput._x & TouchInput._y that give the pixel but how can I get the grid square x & y?
Forgive me as I'm sure this is a simple thing to do; I'm just being kind of lazy by asking for help.
Edit #1:
Well I'm dumb for not trying this before but I think I've got it solved now...
Math.floor(TouchInput._x / 48) & Math.floor(TouchInput._y / 48) seems to do the trick nicely.
Now I just need to find a way to check event ID by X & Y.
Would the best way be to check each event's X & Y against the above?
Seems like there is probably a better way. How can I do this?
Edit:
Just figured it all out... wasn't too hard...
Solutions:
To get the event

I know there is TouchInput._x & TouchInput._y that give the pixel but how can I get the grid square x & y?
Forgive me as I'm sure this is a simple thing to do; I'm just being kind of lazy by asking for help.

Edit #1:
Well I'm dumb for not trying this before but I think I've got it solved now...
Math.floor(TouchInput._x / 48) & Math.floor(TouchInput._y / 48) seems to do the trick nicely.

Would the best way be to check each event's X & Y against the above?
Seems like there is probably a better way. How can I do this?
Edit:
Just figured it all out... wasn't too hard...
Solutions:
To get the event
JavaScript:
$gameMap.eventsXy(Math.floor(TouchInput._x/48), Math.floor(TouchInput._y/48))
Last edited: