Using two input devices at the same time

Description

Trying to get buttons and encoder both to work.

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

STM32F429V, Visual GCC

What LVGL version are you using?

8.3

What do you want to achieve?

Want to use buttons and encoder at the same time.

What have you tried so far?

I am trying to declare two input devices, but only the last declared device works. The first callback function (read_encoder) is never calling. Thanks for any advice!

Code to reproduce

	lv_indev_drv_t indev_drv;
	lv_indev_drv_init(&indev_drv);
	indev_drv.type = LV_INDEV_TYPE_ENCODER;
	indev_drv.read_cb = read_encoder;
	indev_encoder = lv_indev_drv_register(&indev_drv);


	lv_indev_drv_init(&indev_drv);
	indev_drv.type = LV_INDEV_TYPE_BUTTON;
	indev_drv.read_cb = read_buttons;
	indev_buttons = lv_indev_drv_register(&indev_drv);

is this solved?bcs i had same problem, can lvgl running button and encoder?