Navigation

    全志在线开发者论坛

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

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

    V853系列-AI视觉
    2
    5
    93
    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 6 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 0
      • M
        mysteryli LV 6 last edited by

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

        G 1 Reply Last reply Reply Quote Share 0
        • M
          mysteryli LV 6 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 0
          • G
            张三 LV 5 @mysteryli last edited by

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

              问题解决,结贴

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

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

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