Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    【FAQ】全志D1芯片 MiniGUI如何显示鼠标?

    其它全志芯片讨论区
    d1 faq 技术支持
    3
    3
    2178
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • q1215200171
      budbool LV 9 last edited by q1215200171

      【问题描述】
      有时候开发MiniGUI程序需要显示鼠标,但是怎么配置和调试都不显示,那么可以按照下面几步依次检查

      【解决方案】

      • 查看编译libminigui-gpl的时候,是否指定了–disable-cursor,如果指定了是没有鼠标显示的
      • 查看MiniGUI.cfg,cursorpath的路径下是否有鼠标图片,cursornumber是否大于0
      • 查看窗口的过程函数MSG_ERASEBKGND下是否返回了return 0并且什么也没有画,没有填充背景,这样是不显示鼠标的
      • 查看MiniGUI.cfg的输入引擎配置的是否是鼠标,如
      # IAL engine
      ial_engine=console
      mdev=/dev/input/mouse0
      mtype=IMPS2
      
      • 查看创建窗口是否获取了鼠标
      CreateInfo.hCursor = GetSystemCursor(0);
      
      • 查看创建自定义控件是否获取了鼠标
      MyClass.hCursor = GetSystemCursor(0);
      
      1 Reply Last reply Reply Quote Share 2
      • Referenced by  q1215200171 q1215200171 
      • Referenced by  q1215200171 q1215200171 
      • Referenced by  q1215200171 q1215200171 
      • Referenced by  q1215200171 q1215200171 
      • Referenced by  q1215200171 q1215200171 
      • cube_work
        cube_work LV 5 last edited by

        请问多次拔插USB鼠标,MiniGUI 还能识别吗?

        Y 1 Reply Last reply Reply Quote Share 0
        • Y
          YterAA LV 7 @cube_work last edited by

          @cube_work 只要kernel的驱动不挂,刷新IAL就能识别

          1 Reply Last reply Reply Quote Share 1
          • Referenced by  q1215200171 q1215200171 
          • Referenced by  q1215200171 q1215200171 
          • 1 / 1
          • First post
            Last post

          Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

          行为准则 | 用户协议 | 隐私权政策