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

Commit 76ef20f8 authored by Harry Cutts's avatar Harry Cutts
Browse files

InputManagerService: pass settings for new mouse ballistics

Change Ifcf43f4de6017f06b66f37d5e03a13cc257d92d5 added the native code
for this, but I forgot that I'd also had to add a couple of lines here
to pass the speed settings down into native code.

Bug: 315313622
Test: atest inputflinger_tests
Test: check pointer movement with a mouse, including changing the
      pointer speed setting and checking that the movement speed changes
Change-Id: Id2f474eef62f9b08685d2acdc516455228343e2b
parent 8bd00f3f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -685,6 +685,8 @@ void NativeInputManager::getReaderConfiguration(InputReaderConfiguration* outCon
    { // acquire lock
        std::scoped_lock _l(mLock);

        outConfig->mousePointerSpeed = mLocked.pointerSpeed;
        outConfig->mousePointerAccelerationEnabled = mLocked.mousePointerAccelerationEnabled;
        outConfig->pointerVelocityControlParameters.scale = exp2f(mLocked.pointerSpeed
                * POINTER_SPEED_EXPONENT);
        outConfig->pointerVelocityControlParameters.acceleration =