lv_port_linux: Touch pad is unresponsive

Hello,

Thanks for the frame buffer example. These types of examples are a huge help.

I’m trying to get the mouse (touch pad) working… The following code gives me a light gray cursor (LV_SYMBOL_UP) in the upper left corner of the frame, as shown in the attached photo.

`// get an input device like mouse lv_indev_drv_t indev_drv; lv_indev_drv_init(&indev_drv); indev_drv.type = LV_INDEV_TYPE_POINTER; indev_drv.read_cb = evdev_read;

lv_indev_t * mouse_indev = lv_indev_drv_register(&indev_drv); lv_obj_t * cursor_obj = lv_img_create(lv_scr_act(), NULL); //Create an image for the cursor lv_img_set_src(cursor_obj, LV_SYMBOL_UP); //Add a built in symbol not an image lv_indev_set_cursor(mouse_indev, cursor_obj); //Connect mouse object to the driver ` When the LEFT touch pad button is pressed, Tab 1 is highlighted (buttons seem to be working). However, when I put my finger on the touch pad, the cursor disappears and buttons stop working.

Not sure why this is happening. Does anyone know?

Best Regards

lvgl_FrameBuffer

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

Yes, from the X window console command prompt, I ran evtest many times yesterday. No issues. Touch events fire successfully.

However, now that you mention it… Perhaps, I should run evtest within the virtual console (Ctrl + Alt + F1). This is where ./demo actually runs. I’ll try this, later this evening, and report back.