摘要:
下面是一种消抖算法,(常用于ucgui,xvworks图形控制等领域)只是思想,下面分析一下if(msg.type == MSG_POINTER ){ /*when the buttonState is not 0,it state the mouse has pressed*/ if(msg.data.pointer.buttonState !=0) { buttonState_tmp =(int)msg.data.pointer.buttonState; /* handle the mouse shake*/ while(... 阅读全文
posted @ 2011-12-08 17:42 fishonesea 阅读(1140) 评论(0) 推荐(0) 编辑