Home
last modified time | relevance | path

Searched refs:btn_pr (Results 1 – 2 of 2) sorted by relevance

/lvgl-latest/src/widgets/
Dlv_btnmatrix.c438 uint16_t btn_pr; in lv_btnmatrix_event() local
441 btn_pr = get_button_from_point(obj, &p); in lv_btnmatrix_event()
444 if(btn_pr != LV_BTNMATRIX_BTN_NONE) { in lv_btnmatrix_event()
445 if(button_is_inactive(btnm->ctrl_bits[btn_pr]) == false && in lv_btnmatrix_event()
446 button_is_hidden(btnm->ctrl_bits[btn_pr]) == false) { in lv_btnmatrix_event()
447 btnm->btn_id_sel = btn_pr; in lv_btnmatrix_event()
469 uint16_t btn_pr = LV_BTNMATRIX_BTN_NONE; in lv_btnmatrix_event() local
476 btn_pr = get_button_from_point(obj, &p); in lv_btnmatrix_event()
478 if(btn_pr != btnm->btn_id_sel) { in lv_btnmatrix_event()
483 btnm->btn_id_sel = btn_pr; in lv_btnmatrix_event()
[all …]
/lvgl-latest/docs/porting/
Dindev.md155 int btn_pr = my_btn_read(); /*Get the ID (0,1,2...) of the pressed button*/
156 …if(btn_pr >= 0) { /*Is there a button press? (E.g. -1 indicated no button was presse…
157 last_btn = btn_pr; /*Save the ID of the pressed button*/