![]() |
#include "Key.hpp"
Public 类型 | |
| enum class | EventE : uint8_t { Click , LongPress } |
| using | OnKeyEvent = std::function< void(const char *name, EventE e)> |
Public 成员函数 | |
| Key (const char *name, EuvLoop &loop, Bsp::GpioLike *key, int longPressTimeMs) | |
| virtual | ~Key () |
| void | Create (OnKeyEvent e) |
| void | Destroy () |
静态 Public 属性 | |
| static const int | DetectInterval = 50 |
| using Emx::Key::OnKeyEvent = std::function<void(const char *name, EventE e)> |
|
strong |
|
inline |
|
inlinevirtual |
| void Emx::Key::Create | ( | OnKeyEvent | e | ) |
| void Emx::Key::Destroy | ( | ) |
|
static |