@@ -340,19 +340,17 @@ std::list<NotifyArgs> CursorInputMapper::sync(nsecs_t when, nsecs_t readTime) {
340340 getDeviceId (), mSource , *mDisplayId , policyFlags,
341341 AMOTION_EVENT_ACTION_BUTTON_RELEASE, actionButton, 0 ,
342342 metaState, buttonState, MotionClassification::NONE,
343- AMOTION_EVENT_EDGE_FLAG_NONE, 1 , &pointerProperties,
344- &pointerCoords, mXPrecision , mYPrecision ,
345- xCursorPosition, yCursorPosition, downTime,
346- /* videoFrames=*/ {}));
343+ 1 , &pointerProperties, &pointerCoords, mXPrecision ,
344+ mYPrecision , xCursorPosition, yCursorPosition,
345+ downTime, /* videoFrames=*/ {}));
347346 }
348347 }
349348
350349 out.push_back (NotifyMotionArgs (getContext ()->getNextId (), when, readTime, getDeviceId (),
351350 mSource , *mDisplayId , policyFlags, motionEventAction, 0 , 0 ,
352- metaState, currentButtonState, MotionClassification::NONE,
353- AMOTION_EVENT_EDGE_FLAG_NONE, 1 , &pointerProperties,
354- &pointerCoords, mXPrecision , mYPrecision , xCursorPosition,
355- yCursorPosition, downTime,
351+ metaState, currentButtonState, MotionClassification::NONE, 1 ,
352+ &pointerProperties, &pointerCoords, mXPrecision , mYPrecision ,
353+ xCursorPosition, yCursorPosition, downTime,
356354 /* videoFrames=*/ {}));
357355
358356 if (buttonsPressed) {
@@ -364,10 +362,9 @@ std::list<NotifyArgs> CursorInputMapper::sync(nsecs_t when, nsecs_t readTime) {
364362 getDeviceId (), mSource , *mDisplayId , policyFlags,
365363 AMOTION_EVENT_ACTION_BUTTON_PRESS, actionButton, 0 ,
366364 metaState, buttonState, MotionClassification::NONE,
367- AMOTION_EVENT_EDGE_FLAG_NONE, 1 , &pointerProperties,
368- &pointerCoords, mXPrecision , mYPrecision ,
369- xCursorPosition, yCursorPosition, downTime,
370- /* videoFrames=*/ {}));
365+ 1 , &pointerProperties, &pointerCoords, mXPrecision ,
366+ mYPrecision , xCursorPosition, yCursorPosition,
367+ downTime, /* videoFrames=*/ {}));
371368 }
372369 }
373370
@@ -378,10 +375,9 @@ std::list<NotifyArgs> CursorInputMapper::sync(nsecs_t when, nsecs_t readTime) {
378375 out.push_back (NotifyMotionArgs (getContext ()->getNextId (), when, readTime, getDeviceId (),
379376 mSource , *mDisplayId , policyFlags,
380377 AMOTION_EVENT_ACTION_HOVER_MOVE, 0 , 0 , metaState,
381- currentButtonState, MotionClassification::NONE,
382- AMOTION_EVENT_EDGE_FLAG_NONE, 1 , &pointerProperties,
383- &pointerCoords, mXPrecision , mYPrecision ,
384- xCursorPosition, yCursorPosition, downTime,
378+ currentButtonState, MotionClassification::NONE, 1 ,
379+ &pointerProperties, &pointerCoords, mXPrecision ,
380+ mYPrecision , xCursorPosition, yCursorPosition, downTime,
385381 /* videoFrames=*/ {}));
386382 }
387383
@@ -393,10 +389,9 @@ std::list<NotifyArgs> CursorInputMapper::sync(nsecs_t when, nsecs_t readTime) {
393389 out.push_back (NotifyMotionArgs (getContext ()->getNextId (), when, readTime, getDeviceId (),
394390 mSource , *mDisplayId , policyFlags,
395391 AMOTION_EVENT_ACTION_SCROLL, 0 , 0 , metaState,
396- currentButtonState, MotionClassification::NONE,
397- AMOTION_EVENT_EDGE_FLAG_NONE, 1 , &pointerProperties,
398- &pointerCoords, mXPrecision , mYPrecision ,
399- xCursorPosition, yCursorPosition, downTime,
392+ currentButtonState, MotionClassification::NONE, 1 ,
393+ &pointerProperties, &pointerCoords, mXPrecision ,
394+ mYPrecision , xCursorPosition, yCursorPosition, downTime,
400395 /* videoFrames=*/ {}));
401396 }
402397 }
0 commit comments