From 534c4919859ac90ae6fa872e231818119986366d Mon Sep 17 00:00:00 2001 From: huangkai71 Date: Fri, 18 Jun 2021 02:20:25 +0000 Subject: [PATCH] L1-L2 code sync Signed-off-by: huangkai71 --- services/ims/input_event_hub.cpp | 4 ++-- services/ims/input_event_hub.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services/ims/input_event_hub.cpp b/services/ims/input_event_hub.cpp index d5af90b..780ecd4 100644 --- a/services/ims/input_event_hub.cpp +++ b/services/ims/input_event_hub.cpp @@ -23,7 +23,7 @@ const uint32_t MOUSE_DEV_ID = 2; const uint32_t UNKNOW_DEV_ID = 32; } IInputInterface* InputEventHub::inputInterface_ = nullptr; -InputReportEventCb InputEventHub::callback_ = { 0 }; +InputEventCb InputEventHub::callback_ = { 0 }; InputEventHub::ReadCallback InputEventHub::readCallback_ = nullptr; InputEventHub* InputEventHub::GetInstance() @@ -66,7 +66,7 @@ void InputEventHub::SetUp() } ret = inputInterface_->iInputManager->OpenInputDevice(mountDevIndex_[i]); if (ret == INPUT_SUCCESS && inputInterface_->iInputReporter != nullptr) { - callback_.ReportEventPkgCallback = EventCallback; + callback_.EventPkgCallback = EventCallback; ret = inputInterface_->iInputReporter->RegisterReportCallback(mountDevIndex_[i], &callback_); if (ret != INPUT_SUCCESS) { GRAPHIC_LOGE("device dose not exist, can't register callback to it!"); diff --git a/services/ims/input_event_hub.h b/services/ims/input_event_hub.h index 8f05f8c..784e6ec 100644 --- a/services/ims/input_event_hub.h +++ b/services/ims/input_event_hub.h @@ -76,7 +76,7 @@ private: RawEvent data_; static IInputInterface* inputInterface_; - static InputReportEventCb callback_; + static InputEventCb callback_; static ReadCallback readCallback_; }; } // namespace OHOS -- Gitee