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

Commit 70f1cdcc authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Ultrasound: Filter out the special key event for digital pen hovering cursor"

parents c77b212b 9e1328e6
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -58,6 +58,9 @@
#define INDENT4 "        "
#define INDENT5 "          "

// Ultrasound device name.
#define USF_DEVICE_NAME "usf_tsc"

namespace android {

// --- Constants ---
@@ -2088,6 +2091,11 @@ void KeyboardInputMapper::process(const RawEvent* rawEvent) {
                keyCode = AKEYCODE_UNKNOWN;
                flags = 0;
            }
            InputDeviceIdentifier identifier = getEventHub()->getDeviceIdentifier(rawEvent->deviceId);
            if ((identifier.name == USF_DEVICE_NAME) && (scanCode == BTN_USF_HOVERING_CURSOR))
            {
                break;
            }
            processKey(rawEvent->when, rawEvent->value != 0, keyCode, scanCode, flags);
        }
        break;