static void movie_rec_halfshutter_step() { if (!movie_rec_key) return; if (!is_movie_mode() || !liveview_display_idle() || gui_menu_shown()) return; if (HALFSHUTTER_PRESSED) { if (movie_rec_key_long) { // need to keep halfshutter pressed for one second for (int i = 0; i < 10; i++) { msleep(100); if (!HALFSHUTTER_PRESSED) break; } if (!HALFSHUTTER_PRESSED) return; info_led_on(); NotifyBox(1000, "OK"); } while (HALFSHUTTER_PRESSED) msleep(50); if (NOT_RECORDING && ALLOW_MOVIE_START) schedule_movie_start(); else if(ALLOW_MOVIE_STOP) schedule_movie_end(); } }
//~ int get_focus_dir() { return focus_dir; } int is_follow_focus_active() { #ifdef FEATURE_FOLLOW_FOCUS if (!follow_focus) return 0; if (!lv) return 0; if (is_manual_focus()) return 0; if (!liveview_display_idle()) return 0; if (gui_menu_shown()) return 0; #ifdef FEATURE_LCD_SENSOR_SHORTCUTS if (display_sensor && get_lcd_sensor_shortcuts() && follow_focus_mode==0) return 0; #endif if (get_halfshutter_pressed()) return 0; return 1; #else return 0; #endif }