Lines Matching refs:MotionEvent
3 import android.view.MotionEvent;
9 * This can occur in {@value MotionEvent#ACTION_DOWN} or {@value MotionEvent#ACTION_MOVE}. On a
28 public boolean checkAndPerformStylusEvent(MotionEvent event) {
38 case MotionEvent.ACTION_DOWN:
45 case MotionEvent.ACTION_MOVE:
55 case MotionEvent.ACTION_UP:
56 case MotionEvent.ACTION_CANCEL:
71 * Identifies if the provided {@link MotionEvent} is a stylus with the primary stylus button
77 private static boolean isStylusButtonPressed(MotionEvent event) {
78 return event.getToolType(0) == MotionEvent.TOOL_TYPE_STYLUS
79 && ((event.getButtonState() & MotionEvent.BUTTON_SECONDARY)
80 == MotionEvent.BUTTON_SECONDARY);