Changeset 460


Ignore:
Timestamp:
07/30/08 19:16:01 (5 years ago)
Author:
EWAVR
Message:

SX100IS:
+ added adjustable <alt> button and "face" key

  • changed "toggle zebra" shortcut to half+down
  • removed "hide OSD on shooting menu"
Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/gui.c

    r434 r460  
    6767 #define SHORTCUT_SET_HYPERFOCAL      KEY_DOWN 
    6868 
     69#elif defined(CAMERA_sx100is) 
     70//Alt mode 
     71 #define SHORTCUT_TOGGLE_RAW          KEY_ERASE 
     72//Half press shoot button     
     73 #define SHORTCUT_TOGGLE_HISTO        KEY_UP 
     74 #define SHORTCUT_TOGGLE_ZEBRA        KEY_DOWN 
     75 #define SHORTCUT_TOGGLE_OSD          KEY_RIGHT 
     76//Alt mode & Manual mode   
     77 #define SHORTCUT_SET_INFINITY        KEY_UP 
     78 #define SHORTCUT_SET_HYPERFOCAL      KEY_DOWN 
     79 
    6980#else 
    7081 
     
    988999    static const char* names[]={ "Print", "ISO"}; 
    9891000    static const int keys[]={ KEY_PRINT, KEY_ISO }; 
     1001#elif defined(CAMERA_sx100is) 
     1002    static const char* names[]={ "Print", "Face"}; 
     1003    static const int keys[]={ KEY_PRINT, KEY_FACE }; 
    9901004#else 
    9911005    #error camera alt-buttons not defined 
  • trunk/core/kbd.c

    r454 r460  
    432432    { KEY_EXPO_CORR,    "expo_corr"  }, 
    433433    { KEY_MICROPHONE,   "fe"         }, 
     434    { KEY_FACE,         "face"       }, 
    434435    { 0xFF,             "remote"     }, 
    435         { 0xFFFF,           "no_key"     }, 
     436    { 0xFFFF,           "no_key"     }, 
    436437}; 
    437438 
  • trunk/include/camera.h

    r454 r460  
    552552    #define CAM_CAN_MUTE_MICROPHONE     1 
    553553    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 
     554    #define CAM_ADJUSTABLE_ALT_BUTTON   1 
     555    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1 
    554556 
    555557//---------------------------------------------------------- 
  • trunk/include/keyboard.h

    r425 r460  
    2323#define KEY_EXPO_CORR   20     //G-series 
    2424#define KEY_MICROPHONE  21 
    25 #define KEY_DUMMY       22     //dummy key for pressing to disable energy saving in alt mode 
     25#define KEY_FACE        22  //SX100IS 
     26#define KEY_DUMMY       23     //dummy key for pressing to disable energy saving in alt mode 
    2627 
    2728 
  • trunk/platform/sx100is/kbd.c

    r442 r460  
    1818static long last_kbd_key = 0; 
    1919static long alt_mode_key_mask = 0x10000000; 
    20 static int alt_mode_led=0; 
    2120static int usb_power=0; 
    2221static int remote_key, remote_count; 
     
    2423 
    2524#define KEYS_MASK0 (0x0000000C) 
    26 #define KEYS_MASK1 (0x171F0300) 
     25#define KEYS_MASK1 (0x1F1F0300) 
    2726#define KEYS_MASK2 (0x00000000) 
    2827 
     
    5150        { 1, KEY_ERASE    , 0x01000000 }, 
    5251        { 1, KEY_LEFT     , 0x00040000 }, 
     52        { 1, KEY_FACE     , 0x08000000 }, 
    5353 
    5454        { 0, KEY_SHOOT_FULL, 0x0000000C },  
  • trunk/platform/sx100is/sub/100c/makefile.inc

    r435 r460  
    88MEMISOSTART=0x9F498 
    99MEMISOSIZE=0x40000 
    10 //MEMISOSIZE=0x50000 
    1110ROMBASEADDR=0xffc00000 
    1211 
  • trunk/platform/sx100is/sub/100c/movie_rec.c

    r441 r460  
    19591959 
    19601960long CompressionRateTable[]={0x60, 0x5D, 0x5A, 0x57, 0x54, 0x51, 0x4D, 0x48, 0x42, 0x3B, 0x32, 0x29, 0x22, 0x1D, 0x17, 0x14, 0x10, 0xE, 0xB, 9, 7, 6, 5, 4, 3, 2, 1}; 
    1961                                                          
     1961                         
Note: See TracChangeset for help on using the changeset viewer.