27 m_name(name), m_loop(loop), m_key(key), m_longPressTime(longPressTimeMs),
实现多路复用循环的主体,所有基于EuvLoop的事件都应绑定到一个EuvLoop上
Definition: EuvLoop.hpp:18
基于EuvLoop的定时器,很有用的一个东西
Definition: EuvTimer.hpp:16
void Create(OnKeyEvent e)
static const int DetectInterval
Definition: Key.hpp:18
virtual ~Key()
Definition: Key.hpp:30
std::function< void(const char *name, EventE e)> OnKeyEvent
Definition: Key.hpp:24
EventE
Definition: Key.hpp:19
Key(const char *name, EuvLoop &loop, Bsp::GpioLike *key, int longPressTimeMs)
Definition: Key.hpp:26
Definition: EmxGpio.hpp:10