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

Commit 66fa5e20 authored by Garfield Tan's avatar Garfield Tan
Browse files

Add cursor position to MotionEvent.

Bug: 134788085
Test: Builds.
Change-Id: I8c9c6fc43ff1c9c8a1b36f43c90e4730dfc1ee1b
parent 3b77412d
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);