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

Commit c3cdd09f authored by Wenxin Feng's avatar Wenxin Feng Committed by Automerger Merge Worker
Browse files

Merge "Modify touchpad ballistic curves based on the UX study results." into...

Merge "Modify touchpad ballistic curves based on the UX study results." into udc-qpr-dev am: 03b9b28d am: 6ee04a09

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/23971299



Change-Id: I40d4dabcea958d71bad6f5be60719896bf1523b0
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents f9c11e3a 6ee04a09
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -58,13 +58,14 @@ struct CurveSegment {
};

const std::vector<CurveSegment> segments = {
        {10.922, 3.19, 0},
        {31.750, 4.79, -17.526},
        {98.044, 7.28, -96.52},
        {std::numeric_limits<double>::infinity(), 15.04, -857.758},
        {32.002, 3.19, 0},
        {52.83, 4.79, -51.254},
        {119.124, 7.28, -182.737},
        {std::numeric_limits<double>::infinity(), 15.04, -1107.556},
};

const std::vector<double> sensitivityFactors = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 16, 18};
const std::vector<double> sensitivityFactors = {1,  2,  4,  6,  7,  8,  9, 10,
                                                11, 12, 13, 14, 16, 18, 20};

std::vector<double> createAccelerationCurveForSensitivity(int32_t sensitivity,
                                                          size_t propertySize) {