pull/8/head
0x1abin 9 years ago
parent 81994926da
commit 62e8c96edb

@ -1,7 +1,7 @@
# MultiButton # MultiButton
## 简介 ## 简介
MultiButton 是一个小巧简单易用的事件驱动型按键驱动模块,可无限量扩展按键,按键事件的回调处理方式可以简化你的程序结构,去除冗余的按键处理硬编码,让你的按键业务逻辑更清晰。 MultiButton 是一个小巧简单易用的事件驱动型按键驱动模块,可无限量扩展按键,按键事件的回调异步处理方式可以简化你的程序结构,去除冗余的按键处理硬编码,让你的按键业务逻辑更清晰。
## 使用方法 ## 使用方法
1.先申请一个按键结构 1.先申请一个按键结构

@ -7,7 +7,6 @@
#define EVENT_CB(ev) if(handle->cb[ev])handle->cb[ev]((Button*)handle) #define EVENT_CB(ev) if(handle->cb[ev])handle->cb[ev]((Button*)handle)
//button handle list head. //button handle list head.
static struct Button* head_handle = NULL; static struct Button* head_handle = NULL;

Loading…
Cancel
Save