lv_btnmatrix_get_selected_btn() function
Get the index of the lastly "activated" button by the user (pressed, released, focused etc) Useful in the `event_cb` to get the text of the button, check if hidden etc.
Syntax
uint16_t lv_btnmatrix_get_selected_btn(const lv_obj_t * obj); Arguments
obj
pointer to button matrix object
Return value
index of the last released button (LV_BTNMATRIX_BTN_NONE: if unset)