Generally all pointers move some bit, though maybe small, for each event.
 The touch screen is a continuous analog input device; there isn't much
concept of "not changing."  You should just compare the last position vs.
new position for each pointer against whatever threshold you want to decide
if it is moving.

On Thu, Dec 23, 2010 at 3:12 PM, Paul <[email protected]> wrote:

> Hi all.  I am processing multi-touch MotionEvents and have a need to
> only process MOVING pointers when an ACTION_MOVE is detected (rather
> than all pointers).  Currently, I have a loop that goes through each
> pointer in my ACTION_MOVE case statement and sends it off for
> processing, but it would be great to just process the pointer(s) that
> triggered the ACTION_MOVE).
>
> One solution would be to store the location for each pointer on each
> ACTION_MOVE, and when a subsequent ACTION_MOVE is triggered, loop
> through each pointer, get it's position and determine if that has
> changed at all from the previous movement.  It's a bit clunky, so I
> wanted to ask here to see if there might be a simpler way to determine
> which pointer(s) are moving and triggered the ACTION_MOVE in the first
> place.
>
> Thanks for any advice,
>
> Paul
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

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 [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