Пример #1
0
static void up_long_click_handler(ClickRecognizerRef recognizer, void* context) {
    
    if (common_long(TOP)) return;
    
    set_menu();
    
}
Пример #2
0
static void select_long_click_handler(ClickRecognizerRef recognizer, void* context) {
  
  if (common_long(MID)) return;
  
  //    blackout = !blackout;
  //
  //    if (blackout)
  //    text_layer_set_background_color(text_layer, GColorBlack);
  //    else
  //    text_layer_set_background_color(text_layer, GColorClear);
  
  // clear the string
  /*pos = 0;
  for (int i=0; i<TEXT_LENGTH; i++)
  text_buffer[i] = ' ';
  
  drawNotepadText();
  change_set(cur_set, false);
  
  next();
  drawSides();*/
  strncpy(return_text,text_buffer,DESCRIPTION_LENGTH);
  window_stack_pop(true);
  
}
static void select_long_click_handler(ClickRecognizerRef recognizer, void* context)
{
    if (common_long(MID)) return;

    // Close this window

    actions_menu_show();
}
Пример #4
0
static void select_long_click_handler(ClickRecognizerRef recognizer, void* context) {
    
    if (common_long(MID)) return;
    
    blackout = !blackout;
    
    if (blackout)
    text_layer_set_background_color(text_layer, GColorBlack);
    else
    text_layer_set_background_color(text_layer, GColorClear);
    
}
static void down_long_click_handler(ClickRecognizerRef recognizer, void* context) {

    if (common_long(BOT)) return;

    // delete or cancel when back is held
    if (size==27 && pos>0 )
    {
        text_buffer[--pos] = ' ';
        drawNotepadText();
    }
    else
    {
        next();
        drawSides();
    }

}
Пример #6
0
static void down_long_click_handler(ClickRecognizerRef recognizer, void* context) {
    
    if (common_long(BOT)) return;
    
    // delete or cancel when back is held
    
    if (size==27 && pos>0 && !blackout)
    {
        text_buffer[--pos] = ' ';
        text_layer_set_text(wordsYouWrite, text_buffer);
    }
    else
    {
        next();
        drawSides();
    }
    
}