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);
+ // 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; // 增加按键事件