Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 880190e1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add cursor position to MotionEvent."

parents a6b0c1c7 66fa5e20
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -141,6 +141,7 @@ status_t NativeInputEventSender::sendMotionEvent(uint32_t seq, const MotionEvent
                event->getClassification(),
                event->getXOffset(), event->getYOffset(),
                event->getXPrecision(), event->getYPrecision(),
                event->getRawXCursorPosition(), event->getRawYCursorPosition(),
                event->getDownTime(), event->getHistoricalEventTime(i),
                event->getPointerCount(), event->getPointerProperties(),
                event->getHistoricalRawPointerCoords(0, i));
+1 −0
Original line number Diff line number Diff line
@@ -375,6 +375,7 @@ static jlong android_view_MotionEvent_nativeInitialize(JNIEnv* env, jclass clazz
    event->initialize(deviceId, source, displayId, action, 0, flags, edgeFlags, metaState,
            buttonState, static_cast<MotionClassification>(classification),
            xOffset, yOffset, xPrecision, yPrecision,
            AMOTION_EVENT_INVALID_CURSOR_POSITION, AMOTION_EVENT_INVALID_CURSOR_POSITION,
            downTimeNanos, eventTimeNanos, pointerCount, pointerProperties, rawPointerCoords);

    return reinterpret_cast<jlong>(event);