|
|
|
@ -2,7 +2,7 @@
|
|
|
|
* Copyright (c) 2016 Zibin Zheng <znbin@qq.com>
|
|
|
|
* Copyright (c) 2016 Zibin Zheng <znbin@qq.com>
|
|
|
|
* All rights reserved
|
|
|
|
* All rights reserved
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include "button.h"
|
|
|
|
#include "button.h"
|
|
|
|
|
|
|
|
|
|
|
|
//MultiButton
|
|
|
|
//MultiButton
|
|
|
|
@ -110,7 +110,7 @@ void button_handler(struct Button* handle)
|
|
|
|
} else if(handle->button_level == handle->active_level) { //press again
|
|
|
|
} else if(handle->button_level == handle->active_level) { //press again
|
|
|
|
handle->state = 3;
|
|
|
|
handle->state = 3;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case 3: //repeat press pressing
|
|
|
|
case 3: //repeat press pressing
|
|
|
|
if(handle->button_level != handle->active_level) { //double releasd
|
|
|
|
if(handle->button_level != handle->active_level) { //double releasd
|
|
|
|
|