码迷,mamicode.com
首页 > Windows程序 > 详细

emwin 之使用键盘数据发送函数的注意事项

时间:2018-08-08 15:38:42      阅读:213      评论:0      收藏:0      [点我收藏+]

标签:strong   addition   数据   code   star   pac   option   released   注意   

@2018-08-08

小记

  键盘实现时,在发送键值时, 函数 GUI_SendKeyMsg(GUI_KEY_BACKSPACE, Pressed) 的参数 Pressed 在按键按下状态的 case 语句后无 break,此方法参考至官方的模拟器中的键盘实例,加上 break 会导致键盘无响应结果

 1 case ID_BUTTON_13: // Notifications sent by ‘<- -Button‘
 2       switch(NCode) {
 3       case WM_NOTIFICATION_CLICKED:
 4         // USER START (Optionally insert code for reacting on notification message)
 5       
 6         Pressed = 1;
 7       
 8         // USER END
 9       case WM_NOTIFICATION_RELEASED:
10         // USER START (Optionally insert code for reacting on notification message)
11       
12         GUI_SendKeyMsg(GUI_KEY_BACKSPACE, Pressed);
13       
14         // USER END
15         break;
16       // USER START (Optionally insert additional code for further notification handling)
17       // USER END
18       }
19       break;

 

emwin 之使用键盘数据发送函数的注意事项

标签:strong   addition   数据   code   star   pac   option   released   注意   

原文地址:https://www.cnblogs.com/skullboyer/p/9443016.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!