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

Commit 6ee04a09 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

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



Change-Id: I1a569f64e0c5fbb5994ab34a48f6161146b159f1
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 044d95fe 03b9b28d
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) {