MotionEvent has the history of all the points between the last event and the
current one you are processing, if you are not able to keep up with them.

That said, the driver only reports samples at a limited rate, so it would
still be possible to not see points at some places if the finger is moved
really fast.  If you really want to determine every possible key the finger
hit, you will need to compute a line between the points and determine which
ones intersect the line.

On Thu, May 7, 2009 at 7:12 PM, Leslie <sharpbear...@hotmail.com> wrote:

>
> When want to play voice files on Touch Event. I have a piano Keyboard
> on Screen, when user Touch move on piano keys, play its' voice files.
>
> Issue:
>
> I used two way for trails
>
> 1. in Touch Move event, check x, y to avoid play twice in same Key
> region. And when Touch move to a new key region, play the Key voice
> once.
>
> 2. Use Handler Functions for the play action.
>
> But when user move touch quickly, both ways cannot play every key
> voice files in the process. sometime, only the first and last have
> been played.
>
> Do you any suggestions for that?
>
> Thanks a lot
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

Reply via email to