Lines Matching refs:event
465 public static int getActionMasked(MotionEvent event) {
466 return event.getActionMasked();
477 public static int getActionIndex(MotionEvent event) {
478 return event.getActionIndex();
488 public static int findPointerIndex(MotionEvent event, int pointerId) {
489 return event.findPointerIndex(pointerId);
499 public static int getPointerId(MotionEvent event, int pointerIndex) {
500 return event.getPointerId(pointerIndex);
510 public static float getX(MotionEvent event, int pointerIndex) {
511 return event.getX(pointerIndex);
521 public static float getY(MotionEvent event, int pointerIndex) {
522 return event.getY(pointerIndex);
526 * The number of pointers of data contained in this event. Always
532 public static int getPointerCount(MotionEvent event) {
533 return event.getPointerCount();
537 * Gets the source of the event.
539 * @return The event source or {@link InputDeviceCompat#SOURCE_UNKNOWN} if unknown.
544 public static int getSource(MotionEvent event) {
545 return event.getSource();
549 * Determines whether the event is from the given source.
551 * @return Whether the event is from the given source.
553 public static boolean isFromSource(MotionEvent event, int source) {
554 return (event.getSource() & source) == source;
570 public static float getAxisValue(MotionEvent event, int axis) {
571 return event.getAxisValue(axis);
590 public static float getAxisValue(MotionEvent event, int axis, int pointerIndex) {
591 return event.getAxisValue(axis, pointerIndex);
599 public static int getButtonState(MotionEvent event) {
600 return event.getButtonState();