Skip to content

Commit 0b7749e

Browse files
committed
Restore behaviour that both joystick click and ENTER button work.
1 parent 4353e42 commit 0b7749e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/Braccio_Learn_and_Repeat/AppState.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ static void event_handler_menu(lv_event_t * e)
4242
{
4343
lv_event_code_t code = lv_event_get_code(e);
4444

45-
//if (code == LV_EVENT_CLICKED || (code == LV_EVENT_KEY && Braccio.getKey() == BUTTON_ENTER))
46-
if (code == LV_EVENT_KEY && Braccio.getKey() == BUTTON_ENTER)
45+
if (code == LV_EVENT_CLICKED || (code == LV_EVENT_KEY && Braccio.getKey() == BUTTON_ENTER))
4746
{
4847
lv_obj_t * obj = lv_event_get_target(e);
4948
uint32_t const id = lv_btnmatrix_get_selected_btn(obj);

0 commit comments

Comments
 (0)