List of usage examples for android.view MotionEvent axisToString
public static String axisToString(int axis)
From source file:Main.java
public static List<String> getAxisNames(InputDevice device) { List<String> axisNames = new ArrayList<String>(); if (device == null) { return axisNames; }/* w ww .j a v a 2 s . c om*/ List<MotionRange> motionRanges = device.getMotionRanges(); for (MotionRange range : motionRanges) { axisNames.add(MotionEvent.axisToString(range.getAxis())); } return axisNames; }