Loading services/input/Android.mk +4 −0 Original line number Diff line number Diff line Loading @@ -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 Loading services/input/InputReader.cpp +7 −0 Original line number Diff line number Diff line Loading @@ -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) { Loading Loading
services/input/Android.mk +4 −0 Original line number Diff line number Diff line Loading @@ -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 Loading
services/input/InputReader.cpp +7 −0 Original line number Diff line number Diff line Loading @@ -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) { Loading