lv_buttonmatrix_get_selected_button() 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
uint32_t lv_buttonmatrix_get_selected_button(const lv_obj_t * obj); Arguments
obj
pointer to button matrix object
Return value
index of the last released button (LV_BUTTONMATRIX_BUTTON_NONE: if unset)