Changeset 1008


Ignore:
Timestamp:
07/11/12 11:04:43 (11 months ago)
Author:
rudi_de
Message:

Aktualisierung auf Rev. 1973 internationaler Branch: Release-1.0
http://trac.assembla.com/chdk/changeset/1973/branches/release-1_0

Betrifft ixus220, ixus230

  • Korrektur der Tastaturverarbeitung
Location:
trunk/platform
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/platform/ixus220_elph300hs/kbd.c

    r965 r1008  
    1313        line 35: alt_mode_key_mask = 0x00004000 
    1414        line 62: { 2, KEY_PRINT              ,0x00004000 },  //KEY_VIDEO for ALT menu 
    15          
    16         In line 255 special handling of KEY_VIDEO is defined: 
    17         Short Press of KEY_VIDEO toggles <ALT> mode 
    18         Long Press of KEY_VIDEO executes original Canon functionality 
    19          
    20         In future versions this will be changed from KEY_VIDEO to KEY_PLAYBACK. 
    2115         
    2216------------------------------------------------------------------------------*/ 
     
    238232void my_kbd_read_keys() 
    239233{ 
    240         static int altDownTimer=0; 
    241         const int DISP_DOWN_TIME = 20; 
    242  
    243234        kbd_prev_state[0] = kbd_new_state[0]; 
    244235        kbd_prev_state[1] = kbd_new_state[1]; 
     
    252243         
    253244        kbd_new_state[2] |=0x00008000;  /// disable the battery door switch 
    254  
    255         // support for short/long press of Video button 
    256         if (kbd_is_key_pressed(KEY_VIDEO)) {                    // Video Button held down 
    257                 altDownTimer++;                                                         // timer for KEY_VIDEO 
    258         } 
    259         else { 
    260                 altDownTimer = 0; 
    261         } 
    262245 
    263246        if (kbd_process() == 0) { 
     
    276259                physw_status[1] = (kbd_new_state[1] & (~KEYS_MASK1)) | (kbd_mod_state[1] & KEYS_MASK1); 
    277260                physw_status[2] = (kbd_new_state[2] & (~KEYS_MASK2)) |(kbd_mod_state[2] & KEYS_MASK2); 
    278  
    279                 if (altDownTimer > DISP_DOWN_TIME) { 
    280                         physw_status[0] &= ~alt_mode_key_mask;  // press the VIDEO button 
    281                 } 
    282261        } 
    283262         
  • trunk/platform/ixus230_elph310hs/kbd.c

    r931 r1008  
    1313        line 35: alt_mode_key_mask = 0x00004000 
    1414        line 62: { 2, KEY_PRINT              ,0x00004000 },  //KEY_VIDEO for ALT menu 
    15          
    16         In line 255 special handling of KEY_VIDEO is defined: 
    17         Short Press of KEY_VIDEO toggles <ALT> mode 
    18         Long Press of KEY_VIDEO executes original Canon functionality 
    19          
    20         In future versions this will be changed from KEY_VIDEO to KEY_PLAYBACK. 
    2115         
    2216------------------------------------------------------------------------------*/ 
     
    238232void my_kbd_read_keys() 
    239233{ 
    240         static int altDownTimer=0; 
    241         const int DISP_DOWN_TIME = 20; 
    242  
    243234        kbd_prev_state[0] = kbd_new_state[0]; 
    244235        kbd_prev_state[1] = kbd_new_state[1]; 
     
    253244        kbd_new_state[2] |=0x00008000;  /// disable the battery door switch 
    254245 
    255         // support for short/long press of Video button 
    256         if (kbd_is_key_pressed(KEY_VIDEO)) {                    // Video Button held down 
    257                 altDownTimer++;                                                         // timer for KEY_VIDEO 
    258         } 
    259         else { 
    260                 altDownTimer = 0; 
    261         } 
    262246 
    263247        if (kbd_process() == 0) { 
     
    276260                physw_status[1] = (kbd_new_state[1] & (~KEYS_MASK1)) | (kbd_mod_state[1] & KEYS_MASK1); 
    277261                physw_status[2] = (kbd_new_state[2] & (~KEYS_MASK2)) |(kbd_mod_state[2] & KEYS_MASK2); 
    278  
    279                 if (altDownTimer > DISP_DOWN_TIME) { 
    280                         physw_status[0] &= ~alt_mode_key_mask;  // press the VIDEO button 
    281                 } 
    282262        } 
    283263         
Note: See TracChangeset for help on using the changeset viewer.