Skip to content

Commit 9cab74c

Browse files
prabirmspAndroid (Google) Code Review
authored andcommitted
Merge "InputTracer: Add missing fields from MotionEvent" into main
2 parents cdf3f24 + 2ccaa04 commit 9cab74c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

services/inputflinger/dispatcher/trace/AndroidInputEventProtoConverter.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,15 @@ void AndroidInputEventProtoConverter::toProtoMotionEvent(const TracedMotionEvent
5353
outProto.set_classification(static_cast<int32_t>(event.classification));
5454
outProto.set_flags(event.flags);
5555
outProto.set_policy_flags(event.policyFlags);
56+
outProto.set_button_state(event.buttonState);
57+
outProto.set_action_button(event.actionButton);
5658

5759
if (!isRedacted) {
5860
outProto.set_cursor_position_x(event.xCursorPosition);
5961
outProto.set_cursor_position_y(event.yCursorPosition);
6062
outProto.set_meta_state(event.metaState);
63+
outProto.set_precision_x(event.xPrecision);
64+
outProto.set_precision_y(event.yPrecision);
6165
}
6266

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

0 commit comments

Comments
 (0)