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

Commit fd9c1ede authored by chaviw's avatar chaviw Committed by Chavi Weingarten
Browse files

Added libui dependencies for input

Allow Input to support Transform class from libui and
add Transform objects to MotionEvent and InputWindowInfo

Test: Builds
Bug: 158476194
Change-Id: Ic6f2507dbead97c2124dde8c8946add377d724c6
parent c6a2f3a4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@
#include <android/input.h>
#include <math.h>
#include <stdint.h>
#include <ui/Transform.h>
#include <utils/BitSet.h>
#include <utils/KeyedVector.h>
#include <utils/RefBase.h>
@@ -741,6 +742,7 @@ protected:
    float mYScale;
    float mXOffset;
    float mYOffset;
    ui::Transform mTransform;
    float mXPrecision;
    float mYPrecision;
    float mRawXCursorPosition;
+4 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@
#include <input/InputTransport.h>
#include <ui/Rect.h>
#include <ui/Region.h>
#include <ui/Transform.h>
#include <utils/RefBase.h>
#include <utils/Timers.h>

@@ -160,6 +161,9 @@ struct InputWindowInfo {
    float windowXScale = 1.0f;
    float windowYScale = 1.0f;

    // Transform applied to individual windows.
    ui::Transform transform;

    /*
     * This is filled in by the WM relative to the frame and then translated
     * to absolute coordinates by SurfaceFlinger once the frame is computed.

include/ui/Rotation.h

0 → 120000
+1 −0
Original line number Diff line number Diff line
../../libs/ui/include/ui/Rotation.h
 No newline at end of file

include/ui/Transform.h

0 → 120000
+1 −0
Original line number Diff line number Diff line
../../libs/ui/include/ui/Transform.h
 No newline at end of file
+8 −0
Original line number Diff line number Diff line
@@ -43,6 +43,14 @@ cc_library {
        "libcutils",
    ],

    static_libs: [
        "libui-types",
    ],

    export_static_lib_headers: [
        "libui-types",
    ],

    target: {
        android: {
            srcs: [
Loading