Example usage for android.view MotionEvent ACTION_POINTER_ID_MASK

List of usage examples for android.view MotionEvent ACTION_POINTER_ID_MASK

Introduction

In this page you can find the example usage for android.view MotionEvent ACTION_POINTER_ID_MASK.

Prototype

int ACTION_POINTER_ID_MASK

To view the source code for android.view MotionEvent ACTION_POINTER_ID_MASK.

Click Source Link

Usage

From source file:Main.java

@SuppressWarnings("deprecation")
@TargetApi(VERSION_CODES.ECLAIR)/*from w  w  w  .j  a  va2 s .com*/
private static int getPointerIndexEclair(int action) {
    return (action & MotionEvent.ACTION_POINTER_ID_MASK) >> MotionEvent.ACTION_POINTER_ID_SHIFT;
}