Changeset 1008
- Timestamp:
- 07/11/12 11:04:43 (11 months ago)
- Location:
- trunk/platform
- Files:
-
- 2 edited
-
ixus220_elph300hs/kbd.c (modified) (4 diffs)
-
ixus230_elph310hs/kbd.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/platform/ixus220_elph300hs/kbd.c
r965 r1008 13 13 line 35: alt_mode_key_mask = 0x00004000 14 14 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> mode18 Long Press of KEY_VIDEO executes original Canon functionality19 20 In future versions this will be changed from KEY_VIDEO to KEY_PLAYBACK.21 15 22 16 ------------------------------------------------------------------------------*/ … … 238 232 void my_kbd_read_keys() 239 233 { 240 static int altDownTimer=0;241 const int DISP_DOWN_TIME = 20;242 243 234 kbd_prev_state[0] = kbd_new_state[0]; 244 235 kbd_prev_state[1] = kbd_new_state[1]; … … 252 243 253 244 kbd_new_state[2] |=0x00008000; /// disable the battery door switch 254 255 // support for short/long press of Video button256 if (kbd_is_key_pressed(KEY_VIDEO)) { // Video Button held down257 altDownTimer++; // timer for KEY_VIDEO258 }259 else {260 altDownTimer = 0;261 }262 245 263 246 if (kbd_process() == 0) { … … 276 259 physw_status[1] = (kbd_new_state[1] & (~KEYS_MASK1)) | (kbd_mod_state[1] & KEYS_MASK1); 277 260 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 button281 }282 261 } 283 262 -
trunk/platform/ixus230_elph310hs/kbd.c
r931 r1008 13 13 line 35: alt_mode_key_mask = 0x00004000 14 14 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> mode18 Long Press of KEY_VIDEO executes original Canon functionality19 20 In future versions this will be changed from KEY_VIDEO to KEY_PLAYBACK.21 15 22 16 ------------------------------------------------------------------------------*/ … … 238 232 void my_kbd_read_keys() 239 233 { 240 static int altDownTimer=0;241 const int DISP_DOWN_TIME = 20;242 243 234 kbd_prev_state[0] = kbd_new_state[0]; 244 235 kbd_prev_state[1] = kbd_new_state[1]; … … 253 244 kbd_new_state[2] |=0x00008000; /// disable the battery door switch 254 245 255 // support for short/long press of Video button256 if (kbd_is_key_pressed(KEY_VIDEO)) { // Video Button held down257 altDownTimer++; // timer for KEY_VIDEO258 }259 else {260 altDownTimer = 0;261 }262 246 263 247 if (kbd_process() == 0) { … … 276 260 physw_status[1] = (kbd_new_state[1] & (~KEYS_MASK1)) | (kbd_mod_state[1] & KEYS_MASK1); 277 261 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 button281 }282 262 } 283 263
Note: See TracChangeset
for help on using the changeset viewer.