pointerAction method

int pointerAction (int pointerId, int action)

Creates a masked Android MotionEvent action value for an indexed pointer.

Implementation

static int pointerAction(int pointerId, int action) {
  return ((pointerId << 8) & 0xff00) | (action & 0xff);
}