Changeset 1968


Ignore:
Timestamp:
07/10/12 04:58:30 (11 months ago)
Author:
reyalp
Message:

adjustable alt button (disp or play) for ixus120_sd940 from waterwingz in http://chdk.setepontos.com/index.php?topic=650.msg87620#msg87620

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/gui.c

    r1933 r1968  
    14801480        static const char* names[]={ "Video", "Display", "Playback", "Video"}; 
    14811481        static const int keys[] = {KEY_PRINT, KEY_DISPLAY, KEY_PLAYBACK, KEY_VIDEO}; 
     1482    #elif defined(CAMERA_ixus120_sd940) 
     1483        static const char* names[]={ "Display", "Playback" }; 
     1484        static const int keys[] = {KEY_DISPLAY, KEY_PLAYBACK }; 
    14821485    #else 
    14831486        #error camera alt-buttons not defined 
  • trunk/platform/ixus120_sd940/kbd.c

    r1568 r1968  
    2323#define KEYS_MASK0 (0x00000008|0X00000004) 
    2424#define KEYS_MASK1 (0x00000000) 
    25 #define KEYS_MASK2 (0x00000300|0x00000100|0x00000080|0x00000040|0x00000010|0x00000020|0x00000004|0x00000008|0x00000001) 
     25#define KEYS_MASK2 (0x00000800|0x00000300|0x00000100|0x00000080|0x00000040|0x00000010|0x00000020|0x00000004|0x00000008|0x00000001) 
    2626 
    2727#define NEW_SS (0x2000) 
     
    5050        /* tiny bug: key order matters. see kbd_get_pressed_key() */ 
    5151 
     52        { 2, KEY_PLAYBACK       , 0x00000800 }, 
    5253        { 2, KEY_SHOOT_FULL     , 0x00000300 }, 
    53     { 2, KEY_SHOOT_FULL_ONLY, 0x00000200 }, 
     54        { 2, KEY_SHOOT_FULL_ONLY, 0x00000200 }, 
    5455        { 2, KEY_SHOOT_HALF     , 0x00000100 }, 
    55         { 2, KEY_UP                     , 0x00000080 }, 
     56        { 2, KEY_UP             , 0x00000080 }, 
    5657        { 2, KEY_DOWN           , 0x00000040 }, 
    5758        { 2, KEY_LEFT           , 0x00000010 }, 
     
    6465        { 0, KEY_SET            , 0x00000004 }, 
    6566        /* 
    66         { 2, KEY_PWR_PLAYBACK   , 0x00000800 }, 
    6767        { 2, KEY_PWR_SHOOT              , 0x00000400 }, 
    6868        { 2, KEY_BATTERY_DOOR   , 0x00008000 }, 
  • trunk/platform/ixus120_sd940/platform_camera.h

    r1794 r1968  
    3939    #define CAM_HAS_ND_FILTER               1 
    4040    #undef CAM_HAS_ERASE_BUTTON    // Camera does not have a dedicated erase button 
     41 
     42    #define CAM_ADJUSTABLE_ALT_BUTTON       1 
    4143    
    4244    #define CAM_DNG_LENS_INFO               { 50,10, 200,10, 28,10, 59,10 } // See comments in camera.h 
Note: See TracChangeset for help on using the changeset viewer.