How to set a cursor to show where I touch the screen?


I want to set a cursor (like LV_SYMBOL_OK) to show which part of a screen I touched ?

What MCU/Processor/Board and compiler are you using?

What do you want to achieve?

What have you tried so far?

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

/*You code here*/

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.

Hi, you can do show the system cursor like this

	lv_indev_drv_t indev_drv;
	indev_drv.type       = LV_INDEV_TYPE_POINTER;
	indev_drv.read_cb    = mouse_read;
	lv_indev_t *indev    = lv_indev_drv_register(&indev_drv);
	lv_obj_t *cursor_img = lv_img_create(lv_scr_act(), NULL);
	lv_img_set_src(cursor_img, LV_SYMBOL_OK);
	lv_indev_set_cursor(indev, cursor_img);