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