Loading services/inputflinger/reader/InputDevice.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -510,9 +510,9 @@ std::vector<std::unique_ptr<InputMapper>> InputDevice::createMappers( classes.test(InputDeviceClass::TOUCH_MT) && !isSonyDualShock4Touchpad) { mappers.push_back(createInputMapper<TouchpadInputMapper>(contextPtr, readerConfig)); } else if (classes.test(InputDeviceClass::TOUCH_MT)) { mappers.push_back(std::make_unique<MultiTouchInputMapper>(contextPtr, readerConfig)); mappers.push_back(createInputMapper<MultiTouchInputMapper>(contextPtr, readerConfig)); } else if (classes.test(InputDeviceClass::TOUCH)) { mappers.push_back(std::make_unique<SingleTouchInputMapper>(contextPtr, readerConfig)); mappers.push_back(createInputMapper<SingleTouchInputMapper>(contextPtr, readerConfig)); } // Joystick-like devices. Loading services/inputflinger/reader/mapper/MultiTouchInputMapper.h +2 −2 Original line number Diff line number Diff line Loading @@ -27,8 +27,6 @@ public: friend std::unique_ptr<T> createInputMapper(InputDeviceContext& deviceContext, const InputReaderConfiguration& readerConfig, Args... args); explicit MultiTouchInputMapper(InputDeviceContext& deviceContext, const InputReaderConfiguration& readerConfig); ~MultiTouchInputMapper() override; Loading @@ -41,6 +39,8 @@ protected: bool hasStylus() const override; private: explicit MultiTouchInputMapper(InputDeviceContext& deviceContext, const InputReaderConfiguration& readerConfig); // simulate_stylus_with_touch is a debug mode that converts all finger pointers reported by this // mapper's touchscreen into stylus pointers, and adds SOURCE_STYLUS to the input device. // It is used to simulate stylus events for debugging and testing on a device that does not Loading services/inputflinger/reader/mapper/SingleTouchInputMapper.h +2 −2 Original line number Diff line number Diff line Loading @@ -27,8 +27,6 @@ public: friend std::unique_ptr<T> createInputMapper(InputDeviceContext& deviceContext, const InputReaderConfiguration& readerConfig, Args... args); explicit SingleTouchInputMapper(InputDeviceContext& deviceContext, const InputReaderConfiguration& readerConfig); ~SingleTouchInputMapper() override; Loading @@ -42,6 +40,8 @@ protected: private: SingleTouchMotionAccumulator mSingleTouchMotionAccumulator; explicit SingleTouchInputMapper(InputDeviceContext& deviceContext, const InputReaderConfiguration& readerConfig); }; } // namespace android Loading
services/inputflinger/reader/InputDevice.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -510,9 +510,9 @@ std::vector<std::unique_ptr<InputMapper>> InputDevice::createMappers( classes.test(InputDeviceClass::TOUCH_MT) && !isSonyDualShock4Touchpad) { mappers.push_back(createInputMapper<TouchpadInputMapper>(contextPtr, readerConfig)); } else if (classes.test(InputDeviceClass::TOUCH_MT)) { mappers.push_back(std::make_unique<MultiTouchInputMapper>(contextPtr, readerConfig)); mappers.push_back(createInputMapper<MultiTouchInputMapper>(contextPtr, readerConfig)); } else if (classes.test(InputDeviceClass::TOUCH)) { mappers.push_back(std::make_unique<SingleTouchInputMapper>(contextPtr, readerConfig)); mappers.push_back(createInputMapper<SingleTouchInputMapper>(contextPtr, readerConfig)); } // Joystick-like devices. Loading
services/inputflinger/reader/mapper/MultiTouchInputMapper.h +2 −2 Original line number Diff line number Diff line Loading @@ -27,8 +27,6 @@ public: friend std::unique_ptr<T> createInputMapper(InputDeviceContext& deviceContext, const InputReaderConfiguration& readerConfig, Args... args); explicit MultiTouchInputMapper(InputDeviceContext& deviceContext, const InputReaderConfiguration& readerConfig); ~MultiTouchInputMapper() override; Loading @@ -41,6 +39,8 @@ protected: bool hasStylus() const override; private: explicit MultiTouchInputMapper(InputDeviceContext& deviceContext, const InputReaderConfiguration& readerConfig); // simulate_stylus_with_touch is a debug mode that converts all finger pointers reported by this // mapper's touchscreen into stylus pointers, and adds SOURCE_STYLUS to the input device. // It is used to simulate stylus events for debugging and testing on a device that does not Loading
services/inputflinger/reader/mapper/SingleTouchInputMapper.h +2 −2 Original line number Diff line number Diff line Loading @@ -27,8 +27,6 @@ public: friend std::unique_ptr<T> createInputMapper(InputDeviceContext& deviceContext, const InputReaderConfiguration& readerConfig, Args... args); explicit SingleTouchInputMapper(InputDeviceContext& deviceContext, const InputReaderConfiguration& readerConfig); ~SingleTouchInputMapper() override; Loading @@ -42,6 +40,8 @@ protected: private: SingleTouchMotionAccumulator mSingleTouchMotionAccumulator; explicit SingleTouchInputMapper(InputDeviceContext& deviceContext, const InputReaderConfiguration& readerConfig); }; } // namespace android