diff --git a/services/ui/input_event.cpp b/services/ui/input_event.cpp index c75d9bbe71aa7c45dbe049d1352b6faaa72471fa..a6790c4d6862097c1c4c0e71f497d975b35d1bca 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