Navigation

    全志在线开发者论坛

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

    lvgl触摸OK,点击没反应是怎么回事呢?

    V Series
    3
    6
    2366
    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.
    • M
      mysteryli LV 7 last edited by

      触摸移动鼠标可以跟着移动,但是点击却没反应,调试发现ABS_X和ABS_Y事件都有,BTN_TOUCH事件却没有上报到/dev/input/event0
      求大佬帮忙分析
      驱动中上报关键代码如下

      	input_report_abs(ts_data->input_dev,ABS_X, x);
      	input_report_abs(ts_data->input_dev,ABS_Y, y);
      		printk("key up\r\n");
      	input_report_key(ts_data->input_dev,BTN_TOUCH,1);
      	input_sync(ts_data->input_dev);
      
      1 Reply Last reply Reply Quote Share 1
      • M
        mysteryli LV 7 last edited by

        有没有哪位大佬手头刚好有evtest,且有触摸的,帮忙看下输出对不对

        G 1 Reply Last reply Reply Quote Share 1
        • M
          mysteryli LV 7 last edited by mysteryli

          %HTRYRDKZ@LY}516FRTRYD2.png
          如果改为按下再松开 就是下面这种
          D[G8~R%ZUQU}T{$5U]$BZS0.png

          196ccf79-7fd4-4d0a-b1ac-532e85e846aa-V9U%IOH)403N57($GCOD9 (002).png

          1 Reply Last reply Reply Quote Share 1
          • G
            张三 LV 6 @mysteryli last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote Share 0
            • M
              mysteryli LV 7 last edited by

              问题解决,结贴

              L 1 Reply Last reply Reply Quote Share 1
              • L
                lkr2002 LV 3 @mysteryli last edited by

                @mysteryli 你好,想问下你的触摸怎么做到让鼠标箭头跟随的,我目前是可以触摸但是没有箭头怎么打开呀

                1 Reply Last reply Reply Quote Share 0
                • 1 / 1
                • First post
                  Last post

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

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