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

Commit 48780bd4 authored by YuhanYang's avatar YuhanYang Committed by Yuhan Yang
Browse files

Add support to mouse controlled scrolling

Bug: 383555305
Test: N/A
Flag: com.android.hardware.input.mouse_scrolling_acceleration
Change-Id: I26c39339f0ec8b557d42a350731e3e6a2ba0a8db
parent 8a2ac033
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -76,6 +76,9 @@ interface IInputConstants
    /* The default pointer acceleration value. */
    const int DEFAULT_POINTER_ACCELERATION = 3;

    /* The default mouse wheel acceleration value. */
    const int DEFAULT_MOUSE_WHEEL_ACCELERATION = 4;

    /**
     * Use the default Velocity Tracker Strategy. Different axes may use different default
     * strategies.
+4 −1
Original line number Diff line number Diff line
@@ -279,7 +279,10 @@ struct InputReaderConfiguration {
                                             static_cast<float>(
                                                     android::os::IInputConstants::
                                                             DEFAULT_POINTER_ACCELERATION)),
            wheelVelocityControlParameters(1.0f, 15.0f, 50.0f, 4.0f),
            wheelVelocityControlParameters(1.0f, 15.0f, 50.0f,
                                           static_cast<float>(
                                                   android::os::IInputConstants::
                                                           DEFAULT_MOUSE_WHEEL_ACCELERATION)),
            pointerGesturesEnabled(true),
            pointerGestureQuietInterval(100 * 1000000LL),            // 100 ms
            pointerGestureDragMinSwitchSpeed(50),                    // 50 pixels per second