From 89362ce4e6301c5886ed3bd2e7312b073e9ed937 Mon Sep 17 00:00:00 2001 From: huangkai71 Date: Fri, 18 Jun 2021 02:22:30 +0000 Subject: [PATCH] L1-L2 code sync Signed-off-by: huangkai71 --- services/ui/input_event.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/ui/input_event.cpp b/services/ui/input_event.cpp index c75d9bbe..a6790c4d 100644 --- a/services/ui/input_event.cpp +++ b/services/ui/input_event.cpp @@ -22,7 +22,7 @@ constexpr int TOUCH_LOW_TH = 50; constexpr int TOUCH_HIGH_TH = 90; constexpr int INIT_DEFAULT_VALUE = 255; IInputInterface *g_inputInterface; -InputReportEventCb g_callback; +InputEventCb g_callback; bool g_touchSwiping = false; bool g_touchFingerDown = false; @@ -153,7 +153,7 @@ int HdfInit() LOG(ERROR) << "get device1's type failed"; return ret; } - g_callback.ReportEventPkgCallback = ReportEventPkgCallback; + g_callback.EventPkgCallback = ReportEventPkgCallback; ret = g_inputInterface->iInputReporter->RegisterReportCallback(1, &g_callback); if (ret) { LOG(ERROR) << "register callback failed for device 1"; @@ -163,4 +163,4 @@ int HdfInit() ret = g_inputInterface->iInputController->GetDeviceType(1, &devType); return 0; } -} // namespace updater \ No newline at end of file +} // namespace updater -- Gitee