示例#1
0
// store
void handle_key_0(s32 val) {
  if(val == 0) { return; }
  if(check_key(0)) {
    preset_store(*pageSelect);
  }
  show_foot();
}
示例#2
0
static void preset_mousedown(t_presetobj *x, t_object *patcherview, t_pt pt, long modifiers)
{
    int index;
    int n_row_button = (x->j_box.b_rect.width - x->f_font.size * 1.24) / (x->f_font.size * 2.5) + 1;
    index = (int)((pt.y) / (x->f_font.size * 2.5)) * n_row_button;
    index += pd_clip_max((pt.x) / (x->f_font.size * 2.5) + 1, n_row_button);
    x->f_binbuf_hover = index;

    if(modifiers == EMOD_ALT)
        preset_clear(x, index);
    if(modifiers == EMOD_SHIFT)
        preset_store(x, index);
    preset_float(x, index);
}