From c91d1e638a8e4790e7693cfbce2835ea52996cea Mon Sep 17 00:00:00 2001 From: TT Date: Sat, 9 Nov 2019 11:20:22 +0900 Subject: [PATCH] wip --- ui.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ui.c b/ui.c index aa38228..f572bca 100644 --- a/ui.c +++ b/ui.c @@ -1673,6 +1673,7 @@ ui_process_normal(void) if (status & EVT_BUTTON_SINGLE_CLICK) { ui_mode_menu(); } else { +#if 0 do { if (active_marker >= 0 && markers[active_marker].enabled) { if ((status & EVT_DOWN) && markers[active_marker].index > 0) { @@ -1688,6 +1689,19 @@ ui_process_normal(void) } status = btn_wait_release(); } while (status != 0); +#else + if (active_marker >= 0) { + if (status & EVT_DOWN) { + int i = marker_search_left(markers[active_marker].index); + if (i != -1) + markers[active_marker].index = i; + } else if (status & EVT_UP) { + int i = marker_search_right(markers[active_marker].index); + if (i != -1) + markers[active_marker].index = i; + } + } +#endif if (active_marker >= 0) redraw_marker(active_marker, TRUE); }