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

Commit 9cab74cf authored by Prabir Pradhan's avatar Prabir Pradhan Committed by Android (Google) Code Review
Browse files

Merge "InputTracer: Add missing fields from MotionEvent" into main

parents cdf3f241 2ccaa049
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -53,11 +53,15 @@ void AndroidInputEventProtoConverter::toProtoMotionEvent(const TracedMotionEvent
    outProto.set_classification(static_cast<int32_t>(event.classification));
    outProto.set_flags(event.flags);
    outProto.set_policy_flags(event.policyFlags);
    outProto.set_button_state(event.buttonState);
    outProto.set_action_button(event.actionButton);

    if (!isRedacted) {
        outProto.set_cursor_position_x(event.xCursorPosition);
        outProto.set_cursor_position_y(event.yCursorPosition);
        outProto.set_meta_state(event.metaState);
        outProto.set_precision_x(event.xPrecision);
        outProto.set_precision_y(event.yPrecision);
    }

    for (uint32_t i = 0; i < event.pointerProperties.size(); i++) {