How can I detect the x,y values for a continuous touch or mouse hover event? I am not looking to move a layer, but detect if the layer underneath matches the cursor/touch event current position.
I am looking to make a grid of layers. If I tap a layer it should change to another state(simple enough so far). However if I tap and do not lift finger but move it around, the layers that I hover over should have another state, but different from the one when I release my finger(or mouse click).
The touch event has a property for it. It should be event.location.x or .y