Hi,

I'm writing a simple tile based game using a canvas and a 5X5 grid of
tiles.  To determine if a tile is clicked I look at the MotionEvent
supplied by onTouch.  I get the coordinates when MotionEvent.event is
ACTION_UP and translate to tiles.  This works great on the emulator
but when I touch on a device the actual coordinates of the touch
register higher than I'd expect as a end user.

I'm wondering what strategies people have used to get a closer to
"expected" result.  Do you use a simple Y offset?  Do you average the
coordinates over the life of the touch?  Do you use other methods?

Thanks!

Rocco

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to