Ignore:
Timestamp:
03/26/11 23:03:11 (2 years ago)
Author:
reyalP
Message:

fix click command for sx30, like chdkde 576 but more generic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/camera.h

    r1091 r1105  
    100100 
    101101    #undef CAM_DATE_FOLDER_NAMING                   // set if camera uses date based folder naming (Option "Create Folder" in Canon Menu) and get_target_dir_name is implemented 
     102 
     103    #undef CAM_KEY_CLICK_DELAY                      // additional delay between press and release for scripted click 
     104    #define CAM_KEY_PRESS_DELAY         20          // delay after a press - TODO can we combine this with above ? 
     105    #define CAM_KEY_RELEASE_DELAY       20          // delay after a release - TODO do we really need to wait after release ? 
    102106 
    103107//---------------------------------------------------------- 
     
    32193223        #define CAM_BITMAP_PALETTE              7 
    32203224 
    3221    //zebra letterbox for saving memory 
    3222    #undef ZEBRA_HMARGIN0 
    3223    #define ZEBRA_HMARGIN0  30 //this 30 rows are not used by the display buffer is 720x240 effective, no 960x270, i.e. (270-240) reduction in widht possible but not done (more difficult to manage it and slower). 
     3225        //zebra letterbox for saving memory 
     3226        #undef ZEBRA_HMARGIN0 
     3227        #define ZEBRA_HMARGIN0  30 //this 30 rows are not used by the display buffer is 720x240 effective, no 960x270, i.e. (270-240) reduction in widht possible but not done (more difficult to manage it and slower). 
    32243228   
    3225    #undef EDGE_HMARGIN 
    3226    #define EDGE_HMARGIN 2 
    3227    #define CAM_CHDK_PTP 1 
     3229        #undef EDGE_HMARGIN 
     3230        #define EDGE_HMARGIN 2 
     3231        #define CAM_CHDK_PTP 1 
    32283232         
    32293233        #define CAM_DATE_FOLDER_NAMING  1 
     
    32333237        #define EXMEM_BUFFER_SIZE (1024*1024*2)                                 // desired amount of exmem memory to allocate 
    32343238 
     3239    #define CAM_KEY_CLICK_DELAY 150 // SX30 appears to need extra delay for clicks 
    32353240//---------------------------------------------------------- 
    32363241#elif defined (CAMERA_g12) 
     
    33293334        #define CAM_ZEBRA_ASPECT_ADJUST 1 
    33303335 
    3331    //zebra letterbox for saving memory 
    3332    #undef ZEBRA_HMARGIN0 
    3333    #define ZEBRA_HMARGIN0  30 //this 30 rows are not used by the display buffer is 720x240 effective, no 960x270, i.e. (270-240) reduction in widht possible but not done (more difficult to manage it and slower). 
     3336        //zebra letterbox for saving memory 
     3337        #undef ZEBRA_HMARGIN0 
     3338        #define ZEBRA_HMARGIN0  30 //this 30 rows are not used by the display buffer is 720x240 effective, no 960x270, i.e. (270-240) reduction in widht possible but not done (more difficult to manage it and slower). 
    33343339         
    33353340        #define CAM_DATE_FOLDER_NAMING  1 
Note: See TracChangeset for help on using the changeset viewer.