Hi there.  I am trying to implement a custom GestureDetector for a
small multitouch app.  Essentially, the app is trying to approximate
pressure using time, in a 'build-up' pattern such that the longer you
leave a finger in the same place, the more 'ink' I write to the screen
under the finger.  I can make this work passing MotionEvents from
onTouchEvent in my view to a GestureDetector.SimpleOnGestureListener
that has an over-ridden onDown method.  My issue is when a second
finger touches the screen.  I would like all touch events to support
this behavior, such that any finger touching the screen and not moving
will 'build-up' the ink.  Of course, Android 2.2 treats the second,
third, etc multi-touch events as ACTION_POINTER_DOWN events, rather
than ACTION_DOWN, and the gesture detector is completely ignoring any
touches after the first...

An alternative to this would be to simply manually implement 'build-
up' behavior for each MotionEvnt and by-pass the gesturedetector
completely, but I really like the idea of being able to make this
'gesture' modular and something I can use in future apps, rather than
having it hard-coded into each possible MotionEvent case.

Any ideas on this would be much appreciated.

Thanks,

Paul

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