How to use pointer when click button

Description

i add a button and want to click by pointer

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

What LVGL version are you using?

V8.0.2

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:

static lv_indev_drv_t indev_drv;

        lv_timer_enable(false);
		lv_indev_drv_init(&indev_drv);
		indev_drv.type = LV_INDEV_TYPE_POINTER;
		indev_drv.read_cb = LvglPortingCallbackReadTp;
		indev_tp=lv_indev_drv_register(&indev_drv);

		s_group_touchpad_indev=lv_group_create();
		lv_indev_set_group(indev_tp, s_group_keypad_indev);
		lv_timer_enable(true);

lv_obj_t * btn_payment = lv_btn_create(screen);
    lv_obj_align(btn_payment, LV_ALIGN_TOP_MID, 0, 10);
    lv_obj_add_event_cb(btn_payment, memu_event_cb, LV_EVENT_KEY, NULL);
    lv_obj_add_event_cb(btn_payment, memu_event_cb, LV_EVENT_PRESSED, NULL);

    lv_obj_t * label_payment = lv_label_create(btn_payment);
    lv_label_set_text(label_payment, "1-Collect a payment");
    lv_obj_add_style(label_payment, &style_msg, LV_STATE_DEFAULT);
    lv_group_add_obj(s_group_keypad_indev,btn_payment);
    lv_group_add_obj(s_group_touchpad_indev,btn_payment);
    lv_indev_set_group(btn_payment, s_group_keypad_indev);
    lv_indev_set_cursor(indev_tp, btn_payment);

Screenshot and/or video

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