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

Commit 42b0682f authored by Chris Ye's avatar Chris Ye
Browse files

TouchInputMapper: Initialize mSurfaceRight and mSurfaceBottom.

Initialize mSurfaceRight and mSurfaceBottom in class TouchInputMapper
constructor. Reset TouchInputMapper in unit test.

Bug: 162974380
Test: atest MultiTouchInputMapperTest#Process_TouchpadCapture
Change-Id: I5e119c3f79a3bb318746038a1adcf79c0da95724
parent 3b2e768f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -170,6 +170,8 @@ TouchInputMapper::TouchInputMapper(InputDeviceContext& deviceContext)
        mRawSurfaceHeight(-1),
        mSurfaceLeft(0),
        mSurfaceTop(0),
        mSurfaceRight(0),
        mSurfaceBottom(0),
        mPhysicalWidth(-1),
        mPhysicalHeight(-1),
        mPhysicalLeft(0),
+1 −0
Original line number Diff line number Diff line
@@ -2310,6 +2310,7 @@ protected:
        T& mapper = mDevice->addMapper<T>(EVENTHUB_ID, args...);
        configureDevice(0);
        mDevice->reset(ARBITRARY_TIME);
        mapper.reset(ARBITRARY_TIME);
        return mapper;
    }