Enable mouse on frame buffer application

Hello,

I run my LVGL based project on Ubuntu Linux and use frame buffer method. I got picture on the console, but I can’t enable mouse control. I do input device register:

    evdev_init();
    lv_indev_drv_t indev_drv;
    lv_indev_drv_init(&indev_drv);             /*Descriptor of a input device driver*/
    indev_drv.type = LV_INDEV_TYPE_POINTER; /*Touch pad is a pointer-like device*/
    indev_drv.read_cb = evdev_read;            /*Set your driver function*/
    lv_indev_drv_register(&indev_drv);         /*Finally register the driver*/

How to enable mouse input on my application?

You will want to use evtest /dev/input/eventX (use ls /dev/input/event* to see the list) to find which event device corresponds to your mouse. Once you find the right device, configure it in lv_drv_conf.h.

I found mouse and have defined in lv_drv_conf.h :
# define EVDEV_NAME "/dev/input/event2"

But mouse still not working in my application. And I have flashing cursor and can type letters at the bottom of the screen. Maybe this somehow impacts mouse. How to remove this cursor and get mouse?