 #define COLOR_NAME_KEY_SEL  BLUE_8BIT  /* Key foreground color when pressed */
 
 /* LCD touch input variables */
-uint16_t touch_x, touch_y;
-boolean touch_waitup;
+uint16_t touch_x, touch_y; /* Touch x/y coordinates, is 0xFFFF when not pressed */
+boolean touch_waitup;      /* Whether we are waiting a cycle */
+uint32_t swipe_last_time;  /* Last known time while swiping */
+uint16_t swipe_last_pos;   /* Last known position while swiping */
+float swipe_speed;         /* Speed of swiping in pixels/ms */
 
 /* Sketch information buffer */
 typedef struct {

    }
  } while ((icon_idx < MENU_IDX_NONE) && (sketch_index < sketches_buff_cnt));

  /* Handle button presses here */
  if (touchedIndex != MENU_IDX_NONE) {
    /* Open edit menu when holding down on a sketch icon for some time */
    if (touchedIndex >= MENU_IDX_SKET && ((millis() - pressed_time_start) > HOLD_ACTIVATE_DELAY)) {
      editSketch(sketch_icon_text[touchedIndex], false);

        case MENU_IDX_UP:
          /* Move sketch list one page up, ignore if impossible */
          if (sketch_offset) {
            sketch_offset -= SKETCHES_PGINCR;
            redrawIcons = true;
          }
          break;
