No wrap around for Jump tables #2597
-
When I create a menu as shown in muiref/Scrollable jump table and start scrolling through the menu, if new U8X8_MSG_GPIO_MENU_NEXT event is received and cursor is at last line, cursor is placed at the first line of the menu (wrap-around happens). How can I disable wrap-around, i.e. make U8X8_MSG_GPIO_MENU_NEXT have no effect if cursor is at the last line and make U8X8_MSG_GPIO_MENU_PREV have no effect if cursor is at the first line? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The simple answer is, use this code instead of u8g2/sys/sdl/mui_issue_2597/main.c Lines 51 to 104 in 2b75f93 The idea is to take an existing MUIF (here Hope this helps... |
Beta Was this translation helpful? Give feedback.
The simple answer is, use this code instead of
mui_u8g2_u16_list_goto_w1_pi
:u8g2/sys/sdl/mui_issue_2597/main.c
Lines 51 to 104 in 2b75f93