Fields Summary |
---|
static final MotionEventVersionImpl | IMPLSelect the correct implementation to use for the current platform. |
public static final int | ACTION_MASKSynonym for {@link MotionEvent#ACTION_MASK}. |
public static final int | ACTION_POINTER_DOWNSynonym for {@link MotionEvent#ACTION_POINTER_DOWN}. |
public static final int | ACTION_POINTER_UPSynonym for {@link MotionEvent#ACTION_POINTER_UP}. |
public static final int | ACTION_HOVER_MOVESynonym for {@link MotionEvent#ACTION_HOVER_MOVE}. |
public static final int | ACTION_SCROLLSynonym for {@link MotionEvent#ACTION_SCROLL}. |
public static final int | ACTION_POINTER_INDEX_MASKSynonym for {@link MotionEvent#ACTION_POINTER_INDEX_MASK}. |
public static final int | ACTION_POINTER_INDEX_SHIFTSynonym for {@link MotionEvent#ACTION_POINTER_INDEX_SHIFT}. |
public static final int | ACTION_HOVER_ENTERConstant for {@link #getActionMasked}: The pointer is not down but has entered the
boundaries of a window or view.
This action is always delivered to the window or view under the pointer.
This action is not a touch event so it is delivered to
{@link android.view.View#onGenericMotionEvent(MotionEvent)} rather than
{@link android.view.View#onTouchEvent(MotionEvent)}.
|
public static final int | ACTION_HOVER_EXITConstant for {@link #getActionMasked}: The pointer is not down but has exited the
boundaries of a window or view.
This action is always delivered to the window or view that was previously under the pointer.
This action is not a touch event so it is delivered to
{@link android.view.View#onGenericMotionEvent(MotionEvent)} rather than
{@link android.view.View#onTouchEvent(MotionEvent)}.
|
Methods Summary |
---|
public static int | findPointerIndex(android.view.MotionEvent event, int pointerId)Call {@link MotionEvent#findPointerIndex(int)}.
If running on a pre-{@link android.os.Build.VERSION_CODES#ECLAIR} device,
does nothing and returns -1.
return IMPL.findPointerIndex(event, pointerId);
|
public static int | getActionIndex(android.view.MotionEvent event)Call {@link MotionEvent#getAction}, returning only the pointer index
portion
return (event.getAction() & ACTION_POINTER_INDEX_MASK)
>> ACTION_POINTER_INDEX_SHIFT;
|
public static int | getActionMasked(android.view.MotionEvent event)Call {@link MotionEvent#getAction}, returning only the {@link #ACTION_MASK}
portion.
return event.getAction() & ACTION_MASK;
|
public static int | getPointerCount(android.view.MotionEvent event)The number of pointers of data contained in this event. Always
>= 1.
return IMPL.getPointerCount(event);
|
public static int | getPointerId(android.view.MotionEvent event, int pointerIndex)Call {@link MotionEvent#getPointerId(int)}.
If running on a pre-{@link android.os.Build.VERSION_CODES#ECLAIR} device,
{@link IndexOutOfBoundsException} is thrown.
return IMPL.getPointerId(event, pointerIndex);
|
public static float | getX(android.view.MotionEvent event, int pointerIndex)Call {@link MotionEvent#getX(int)}.
If running on a pre-{@link android.os.Build.VERSION_CODES#ECLAIR} device,
{@link IndexOutOfBoundsException} is thrown.
return IMPL.getX(event, pointerIndex);
|
public static float | getY(android.view.MotionEvent event, int pointerIndex)Call {@link MotionEvent#getY(int)}.
If running on a pre-{@link android.os.Build.VERSION_CODES#ECLAIR} device,
{@link IndexOutOfBoundsException} is thrown.
return IMPL.getY(event, pointerIndex);
|