zoukankan      html  css  js  c++  java
  • emwin 之使用键盘数据发送函数的注意事项

    @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;
  • 相关阅读:
    不同编码字符所占大小
    期末考点总结--------多元统计分析
    博客网站设计
    java 事件举例
    zookerper总结
    Spring java配置
    Sense and Sensibility
    栈的出栈序列个数
    闭算子
    线性空间结论总结
  • 原文地址:https://www.cnblogs.com/skullboyer/p/9443016.html
Copyright © 2011-2022 走看看