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

Commit 37c2180a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add default values for InputTarget struct"

parents ee964466 240f8313
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -93,21 +93,22 @@ struct InputTarget {
    sp<InputChannel> inputChannel;

    // Flags for the input target.
    int32_t flags;
    int32_t flags = 0;

    // The x and y offset to add to a MotionEvent as it is delivered.
    // (ignored for KeyEvents)
    float xOffset, yOffset;
    float xOffset = 0.0f;
    float yOffset = 0.0f;

    // Scaling factor to apply to MotionEvent as it is delivered.
    // (ignored for KeyEvents)
    float globalScaleFactor;
    float globalScaleFactor = 1.0f;
    float windowXScale = 1.0f;
    float windowYScale = 1.0f;

    // The subset of pointer ids to include in motion events dispatched to this input target
    // if FLAG_SPLIT is set.
    BitSet32 pointerIds;
    BitSet32 pointerIds{};
};

std::string dispatchModeToString(int32_t dispatchMode);