views:

13

answers:

0

I'm currently implementing a gesture detector for multi-touch events on Android. For testing the behaviour of the detector, i want to send MotionEvents into the detector and check his actions.

The problem i am currently having is that i can only create MotionEvents by calling one of the existing MotionEvent.obtain() methods, but it seems these methods do not allow me to set the pointer id for an event. I.e. i can only create single-touch events.

Does anyone know if it's possible to do this somehow? I could use another datastructure for input to the detector, but if possible i want to avoid this and stick with the MotionEvent class.