标签: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;
标签:strong addition 数据 code star pac option released 注意
原文地址:https://www.cnblogs.com/skullboyer/p/9443016.html