Java tutorial
//package com.java2s; //License from project: BSD License import android.view.MotionEvent; public class Main { private static int AXIS_RELATIVE_Y; public static float getRelativeAxisY(MotionEvent event) { return event.getAxisValue(AXIS_RELATIVE_Y); } }