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

Commit eeeec6a0 authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "Process the BTN_MOUSE event" into ics

parents f8c5b738 c9b7945b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -43,6 +43,10 @@ ifeq ($(BOARD_USE_LEGACY_TOUCHSCREEN),true)
LOCAL_CFLAGS += -DLEGACY_TOUCHSCREEN
endif

ifeq ($(BOARD_USE_LEGACY_TRACKPAD,true)
LOCAL_CFLAGS += -DLEGACY_TRACKPAD
endif

LOCAL_MODULE:= libinput

LOCAL_MODULE_TAGS := optional
+7 −0
Original line number Diff line number Diff line
@@ -2226,6 +2226,13 @@ void CursorInputMapper::process(const RawEvent* rawEvent) {
    if (rawEvent->type == EV_SYN && rawEvent->scanCode == SYN_REPORT) {
        sync(rawEvent->when);
    }
#ifdef LEGACY_TRACKPAD
    // sync now since BTN_MOUSE is not necessarily followed by SYN_REPORT and
    // we need to ensure that we report the up/down promptly.
    else if (rawEvent->type == EV_KEY && rawEvent->scanCode == BTN_MOUSE) {
        sync(rawEvent->when);
    }
#endif
}

void CursorInputMapper::sync(nsecs_t when) {