摘要
介绍了一种通过一个按键完成参数值的单次增加和连续增加的软件实现方法.变量key_keep_timer用来记录按键按下的保持时间,变量auto_value_change_f用来标记当前参数的增加方式.通过两个参数的巧妙组合实现了参数值的单次增加和连续增加.
A way to realize value one-time increase and continuous increase with one button is introduced.The keeping time that button pushed is recorded by variable key_keep_timer,and the increasing mode of parameter is recorded by variable auto_value_change_f.Ingenious combination of the two parameters achieved one-time increase and continuous increase of parameter value.
出处
《湖北民族学院学报(自然科学版)》
CAS
2010年第2期181-183,共3页
Journal of Hubei Minzu University(Natural Science Edition)
关键词
按键
参数值
单次增加
连续增加
button
parameter value
one-time increase
continuous increase