From: xue <2144439972@qq.com> Date: Thu, 18 Sep 2025 02:14:55 +0000 (+0800) Subject: 修复编译bug X-Git-Tag: leiniao_debug_1.0.0_20250922_020716~61^2~1 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F2287%2Fhead;p=mirrors%2FFD230.git 修复编译bug --- diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdPresenter.h b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdPresenter.h index ea224f050..7d71f47de 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdPresenter.h +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdPresenter.h @@ -21,8 +21,8 @@ namespace OHOS ThunderBirdPresenter(); virtual ~ThunderBirdPresenter(); - void OnTickEvent() override; - void Notify() override {} + void OnTickEvent() override{} + void Notify() override; void OnStart() override; void OnResume() override; @@ -32,6 +32,15 @@ namespace OHOS // 发布事件函数 void PublishEvent(uint16_t topic, uint8_t *data = nullptr, uint32_t size = 0); + // 按键注册方法 + bool RegisterKeyEvents(void); + bool RegisterPowerKeyLongPressEvent(void); + bool RegisterPowerKeyPressEvent(void); + bool RegisterFuncKeyPressEvent(void); + bool RegisterFuncKeyLongPressEvent(void); + bool RegisterVendorUpKeyPressEvent(void); + bool RegisterVendorDownKeyPressEvent(void); + private: bool OnKeyAct(UIView &view, const KeyEvent &event) override; // 增加按键事件 bool X_DRAG_FLAG{false};