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

Commit 038d2ecb authored by Tomasz Zajac's avatar Tomasz Zajac Committed by Gerrit Code Review
Browse files

Legacy touchscreen: Fix B key issue

Patchset 2: Clean code

Change-Id: I4c0bcb7f1cea0744ab983c87167af0bb9a472859
parent 95c24a20
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -989,7 +989,7 @@ void InputDevice::process(const RawEvent* rawEvents, size_t count) {

            // Old touchscreen sensors need to send a fake BTN_TOUCH (BTN_LEFT)

            if (rawEvent->code == ABS_MT_TOUCH_MAJOR) {
            if (rawEvent->code == ABS_MT_TOUCH_MAJOR && rawEvent->type == EV_ABS) {

                z_data = rawEvent->value;
                touched = (0 != z_data);