示例#1
0
void handle_key_1(s32 val) {
    s16 newOut;
    if(val == 0) {
        return;
    }
    if(check_key(1)) {
        if(altMode) {
            print_dbg("\r\n splitting output: ");
            print_dbg_ulong(*pageSelect);
            newOut = net_split_out(*pageSelect);
            *pageSelect = newOut;
            redraw_outs();
        } else {
            // include / exclude in selected preset
            // show preset name in head region
            draw_preset_name();
            // include / exclude in preset
            net_toggle_out_preset(*pageSelect);
            // re-draw selected line to update inclusion glyph
            // render to tmp buffer
            render_line(*pageSelect, 0xf);
            // copy to scroll with highlight
            render_to_scroll_line(SCROLL_CENTER_LINE, 1);
        }
    }
    show_foot();
}
示例#2
0
文件: page_outs.c 项目: dinchak/aleph
void handle_key_1(s32 val) {
  if(val == 0) { return; }
  if(check_key(1)) {
    if(altMode) {
      // TODO: split
    } else {
      // include / exclude in selected preset
	// show preset name in head region
      draw_preset_name();
      // include / exclude in preset
      net_toggle_out_preset(*pageSelect);
      // re-draw selected line to update inclusion glyph
      // render to tmp buffer
      render_line(*pageSelect, 0xf);
      // copy to scroll with highlight
      render_to_scroll_line(SCROLL_CENTER_LINE, 1);
    }
  }
  show_foot();
}