示例#1
0
// 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);
}
示例#2
0
// 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);
  
}