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

Commit 899e4b9d authored by Arpit Singh's avatar Arpit Singh
Browse files

Move isPreventingTouchpadTaps state to NativeInputManager

Moving isPreventingTouchpadTaps state to NativeInputManager so that it
can be accessed from Choreographer and TouchpadInputmapper both.

Test: presubmit
Bug: b/338652288
Flag: EXEMPT bugfix
Change-Id: I88258352b9964e7dfadb5e3bd837bac53a3f9ee1
parent ecfe1370
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -382,6 +382,7 @@ public:
            PointerControllerInterface::ControllerType type) override;
    void notifyPointerDisplayIdChanged(ui::LogicalDisplayId displayId,
                                       const FloatPoint& position) override;
    void notifyMouseCursorFadedOnTyping() override;

    /* --- InputFilterPolicyInterface implementation --- */
    void notifyStickyModifierStateChanged(uint32_t modifierState,
@@ -788,6 +789,10 @@ void NativeInputManager::notifyPointerDisplayIdChanged(ui::LogicalDisplayId poin
            InputReaderConfiguration::Change::DISPLAY_INFO);
}

void NativeInputManager::notifyMouseCursorFadedOnTyping() {
    mInputManager->getReader().notifyMouseCursorFadedOnTyping();
}

void NativeInputManager::notifyStickyModifierStateChanged(uint32_t modifierState,
                                                          uint32_t lockedModifierState) {
    JNIEnv* env = jniEnv();