// scroll character value at cursor position2 in scene name void handle_enc_3(s32 val) { if(val > 0) { edit_string_inc_char(sceneData->desc.sceneName, cursor); } else { edit_string_dec_char(sceneData->desc.sceneName, cursor); } print_dbg("\r\b edited scene name: "); print_dbg(sceneData->desc.sceneName); render_edit_string(headRegion, sceneData->desc.sceneName, SCENE_NAME_LEN, cursor); }
// scroll character value at cursor positoin in scene name void handle_enc_0(s32 val) { if(val > 0) { edit_string_inc_char(preset_name(*pageSelect), cursor); } else { edit_string_dec_char(preset_name(*pageSelect), cursor); } print_dbg("\r\b edited preset name: "); print_dbg(preset_name(*pageSelect)); render_edit_string(lineRegion, preset_name(*pageSelect), PRESET_NAME_LEN, cursor); render_to_scroll_line(SCROLL_CENTER_LINE, 0); }
// scroll cursor position in current scene name void handle_enc_2(s32 val) { if(val > 0) { ++cursor; if (cursor >= SCENE_NAME_LEN) { cursor = 0; } } else { --cursor; if (cursor < 0) { cursor = SCENE_NAME_LEN - 1; } } if(sceneData->desc.sceneName[cursor] == '\0') { sceneData->desc.sceneName[cursor] = '_'; } render_edit_string(headRegion, sceneData->desc.sceneName, SCENE_NAME_LEN, cursor); }
// scroll cursor position in current scene name void handle_enc_1(s32 val) { if(val > 0) { ++cursor; if (cursor >= PRESET_NAME_LEN) { cursor = 0; } } else { --cursor; if (cursor < 0) { cursor = PRESET_NAME_LEN - 1; } } if(preset_name(*pageSelect)[cursor] == '\0') { preset_name(*pageSelect)[cursor] = '_'; } render_edit_string(lineRegion, preset_name(*pageSelect), PRESET_NAME_LEN, cursor); render_to_scroll_line(SCROLL_CENTER_LINE, 0); }
// scroll cursor position in current scene name void handle_enc_2(s32 val) { pages_edit_cursor(val, preset_name(*pageSelect), &cursor, PRESET_NAME_LEN); /* if(val > 0) { */ /* ++cursor; */ /* if (cursor >= PRESET_NAME_LEN) { */ /* cursor = 0; */ /* } */ /* } else { */ /* --cursor; */ /* if (cursor < 0) { */ /* cursor = PRESET_NAME_LEN - 1; */ /* } */ /* } */ /* if(preset_name(*pageSelect)[cursor] == '\0') { */ /* preset_name(*pageSelect)[cursor] = '_'; */ /* } */ render_edit_string(lineRegion, preset_name(*pageSelect), PRESET_NAME_LEN, cursor); render_to_scroll_line(SCROLL_CENTER_LINE, 0); }
void render_selection(void) { render_edit_string(lineRegion, preset_name(*pageSelect), PRESET_NAME_LEN, cursor); render_to_scroll_line(SCROLL_CENTER_LINE, 0); // render_scroll_apply_hl(SCROLL_CENTER_LINE, 1); }