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

Commit db33f73a authored by Tomasz Zajac's avatar Tomasz Zajac Committed by Lalit Maganti
Browse files

Legacy touchscreen: Fix B key issue

Patchset 2: Clean code

Change-Id: Ib1fc59833d066dee9c4c5f02a9bf1a912463cb1e
parent 0f043dd6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1004,7 +1004,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);