lvgl / lv_drivers

TFT and touch pad drivers for LVGL embedded GUI library
https://docs.lvgl.io/master/porting/index.html
MIT License
290 stars 309 forks source link

how to support(register) multiple input devices? #283

Open incity opened 1 year ago

incity commented 1 year ago

There is no interface to register devices with libinput_read_state.(3 parameters)

13e8eaa807ba78a1d1555fe83cfb9f7 5ba0ca1c82620778cdb9aad4050af7a 82797b9b91210ae649b9de199c535d5 df09e8e4499ad0c5a5a4e7868b6bf4b

kisvegabor commented 1 year ago

@Johennes could you comment on this?

Johennes commented 1 year ago

@incity you need to define a custom callback and inside of it call libinput_read_state with the state extracted from the driver's user_data field. See e.g. https://gitlab.com/cherrypicker/unl0kr/-/blob/master/indev.c#L357.