Lines Matching refs:event

464     public static int getActionMasked(MotionEvent event) {
465 return event.getActionMasked();
476 public static int getActionIndex(MotionEvent event) {
477 return event.getActionIndex();
487 public static int findPointerIndex(MotionEvent event, int pointerId) {
488 return event.findPointerIndex(pointerId);
498 public static int getPointerId(MotionEvent event, int pointerIndex) {
499 return event.getPointerId(pointerIndex);
509 public static float getX(MotionEvent event, int pointerIndex) {
510 return event.getX(pointerIndex);
520 public static float getY(MotionEvent event, int pointerIndex) {
521 return event.getY(pointerIndex);
525 * The number of pointers of data contained in this event. Always
531 public static int getPointerCount(MotionEvent event) {
532 return event.getPointerCount();
536 * Gets the source of the event.
538 * @return The event source or {@link InputDeviceCompat#SOURCE_UNKNOWN} if unknown.
543 public static int getSource(MotionEvent event) {
544 return event.getSource();
548 * Determines whether the event is from the given source.
550 * @return Whether the event is from the given source.
552 public static boolean isFromSource(MotionEvent event, int source) {
553 return (event.getSource() & source) == source;
569 public static float getAxisValue(MotionEvent event, int axis) {
570 return event.getAxisValue(axis);
589 public static float getAxisValue(MotionEvent event, int axis, int pointerIndex) {
590 return event.getAxisValue(axis, pointerIndex);
598 public static int getButtonState(MotionEvent event) {
599 return event.getButtonState();