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

Commit 141a9865 authored by Prabir Pradhan's avatar Prabir Pradhan
Browse files

Add flag AMOTION_EVENT_FLAG_IS_GENERATED_GESTURE to Input.h

Since there is no support for touchpad gestures yet, the gestures are
sent as MotionEvents with the flag:
AMOTION_EVENT_FLAG_IS_GENERATED_GESTURE

This flag is already present in java as:
MotionEvent.FLAG_IS_GENERATED_GESTURE

This change adds the flag to Input.h.

Bug: 119265089
Test: none
Change-Id: Ide0cc41d3f44a8694fa02faa0337eb2cf72de6f2
parent dc2e1d7c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -59,6 +59,12 @@ enum {
     */
    AMOTION_EVENT_FLAG_WINDOW_IS_PARTIALLY_OBSCURED = 0x2,

    /**
     * This flag indicates that the event has been generated by a gesture generator. It
     * provides a hint to the GestureDetector to not apply any touch slop.
     */
    AMOTION_EVENT_FLAG_IS_GENERATED_GESTURE = 0x8,

    /* Motion event is inconsistent with previously sent motion events. */
    AMOTION_EVENT_FLAG_TAINTED = 0x80000000,
};