Java tutorial
//package com.java2s; import android.view.MotionEvent; public class Main { public static float getX(MotionEvent event, int pindex) { return event.getX(pindex); } }