Beispiel #1
0
// copy / clear / confirm
void handle_key_2(s32 val) {
  if(val == 1) { return; }
  if(check_key(2)) {
    preset_clear(*pageSelect);
  }
  show_foot();
}
Beispiel #2
0
// copy / clear / confirm
void handle_key_2(s32 val) {
  if(inClear) {
    preset_clear(*pageSelect);
  } else {
    inClear = 1;
  }
}
Beispiel #3
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);
}