ThunderBirdPresenter();
virtual ~ThunderBirdPresenter();
- void OnTickEvent() override;
- void Notify() override {}
+ void OnTickEvent() override{}
+ void Notify() override;
void OnStart() override;
void OnResume() override;
// 发布事件函数
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};