Changeset 1797


Ignore:
Timestamp:
04/11/12 04:14:42 (14 months ago)
Author:
philmoz
Message:

Add option to disable the 'zoom assist' button on the SX30 and SX40.

Location:
trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/CHDK/LANG/english.lng

    r1719 r1797  
    672672 
    673673551 "Enable script start" 
     674 
     675552 "Disable Zoom Assist button" 
  • trunk/core/conf.c

    r1796 r1797  
    454454    CONF_INFO(286, conf.overexp_threshold,          CONF_DEF_VALUE,     i:5, NULL), 
    455455    CONF_INFO(287, conf.overexp_ev_enum,            CONF_DEF_VALUE,     i:3, conf_change_autoiso), 
     456 
     457#if defined(CAM_ZOOM_ASSIST_BUTTON_CONTROL) 
     458    CONF_INFO(288, conf.zoom_assist_button_disable, CONF_DEF_VALUE,     i:0, NULL), 
     459#endif 
    456460    }; 
    457461#define CONF_NUM (sizeof(conf_info)/sizeof(conf_info[0])) 
  • trunk/core/gui.c

    r1796 r1797  
    494494#if CAM_ADJUSTABLE_ALT_BUTTON 
    495495    MENU_ITEM(0x22,LANG_MENU_MISC_ALT_BUTTON,               MENUITEM_ENUM,                  gui_alt_mode_button_enum,           0 ), 
     496#endif 
     497#if defined(CAM_ZOOM_ASSIST_BUTTON_CONTROL) 
     498    MENU_ITEM   (0x5c,LANG_MENU_MISC_ZOOM_ASSIST,           MENUITEM_BOOL,                  &conf.zoom_assist_button_disable,   0 ), 
    496499#endif 
    497500    MENU_ITEM(0x5d,LANG_MENU_MISC_DISABLE_LCD_OFF,    MENUITEM_ENUM,    gui_alt_power_enum, 0 ), 
  • trunk/core/gui_lang.h

    r1719 r1797  
    677677#define LANG_MENU_SCRIPT_START_ENABLE                   551 
    678678 
    679 #define GUI_LANG_ITEMS                          551 
     679#define LANG_MENU_MISC_ZOOM_ASSIST              552 
     680 
     681#define GUI_LANG_ITEMS                          552 
    680682 
    681683//------------------------------------------------------------------- 
  • trunk/include/camera.h

    r1790 r1797  
    197197        #undef  DRAW_ON_ACTIVE_BITMAP_BUFFER_ONLY       // Draw pixels on active bitmap buffer only. Requires active_bitmap_buffer location in stubs_min.S or stubs_entry.S. 
    198198         
     199    #undef  CAM_ZOOM_ASSIST_BUTTON_CONTROL      // Activate menu option to enable/disable the zoom assist button on the SX30/SX40 
     200                                                // For other cameras, requires additional support code in kbd.c (see the SX30 or SX40 version) 
     201 
    199202//---------------------------------------------------------- 
    200203// Overridden values for each camera 
  • trunk/include/conf.h

    r1719 r1797  
    327327 
    328328        // gen 2 USB remote 
    329         int remote_switch_type ; 
    330         int remote_control_mode ; 
     329        int remote_switch_type; 
     330        int remote_control_mode; 
    331331 
    332332    int ext_video_time; 
    333333     
    334     int remote_enable_scripts ;  // usb remote activates scripts in <ALT> mode 
     334    int remote_enable_scripts;  // usb remote activates scripts in <ALT> mode 
    335335     
     336#if defined(CAM_ZOOM_ASSIST_BUTTON_CONTROL) 
     337    int zoom_assist_button_disable;    // used to disable the zoom assist button on SX30 & SX40 for people who keep accidentaly pressing it 
     338#endif 
     339 
    336340#ifdef CAM_HAS_GPS 
    337341    int gps_record; 
  • trunk/platform/sx30/kbd.c

    r1568 r1797  
    174174        } 
    175175 
     176    // Disable Zoom Assist button 
     177    if (conf.zoom_assist_button_disable) 
     178        physw_status[0] |= 0x00010000; 
     179 
    176180        //_kbd_read_keys_r2(physw_status); 
    177181 
  • trunk/platform/sx30/platform_camera.h

    r1698 r1797  
    127127    #define CAMERA_MAX_DIST                 9090910 // Override max subject distance 
    128128 
     129    #define CAM_ZOOM_ASSIST_BUTTON_CONTROL      1       // Activate the menu option to allow disabling the zoom assist button 
     130 
    129131//---------------------------------------------------------- 
    130132 
  • trunk/platform/sx40hs/kbd.c

    r1568 r1797  
    174174        } 
    175175 
     176    // Disable Zoom Assist button 
     177    if (conf.zoom_assist_button_disable) 
     178        physw_status[0] |= 0x00010000; 
     179 
    176180        //_kbd_read_keys_r2(physw_status); 
    177181 
  • trunk/platform/sx40hs/platform_camera.h

    r1698 r1797  
    133133    #undef  CAMERA_MAX_DIST 
    134134    #define CAMERA_MAX_DIST                     9523810 // Override max subject distance 
     135 
     136    #define CAM_ZOOM_ASSIST_BUTTON_CONTROL      1       // Activate the menu option to allow disabling the zoom assist button 
     137 
    135138//---------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.