A570 Underwater need to move the Alt button - page 2 - General Discussion and Assistance - CHDK Forum  

A570 Underwater need to move the Alt button

  • 35 Replies
  • 17426 Views
*

Offline fe50

  • ******
  • 3147
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: A570 Underwater need to move the Alt button
« Reply #10 on: 05 / July / 2010, 06:24:50 »
Advertisements
Should we add this (adjustable <Alt> button for the A570, DISPLAY or PRINT) to the trunk ?
Could be useful for other underwater photographers, also as guideline/sample for other cameras...

Re: A570 Underwater need to move the Alt button
« Reply #11 on: 05 / July / 2010, 06:36:31 »
Should we add this (adjustable <Alt> button for the A570, DISPLAY or PRINT) to the trunk ?
Could be useful for other underwater photographers, also as guideline/sample for other cameras...
I for one would really appreciate to have this functionality in my G10, should it ever get ported.

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: A570 Underwater need to move the Alt button
« Reply #12 on: 05 / July / 2010, 15:06:05 »
Should we add this (adjustable <Alt> button for the A570, DISPLAY or PRINT) to the trunk ?
Could be useful for other underwater photographers, also as guideline/sample for other cameras...

I believe we should. There seem to be a bunch of other cameras with this feature already (s2is, g7, g9, a650, sx100is, sx10 in the trunk 885 copy I happen to have on my hdd).

*

Offline fe50

  • ******
  • 3147
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: A570 Underwater need to move the Alt button
« Reply #13 on: 05 / July / 2010, 17:17:09 »
Added the adjustable <Alt> button for the A570 to the trunk, changeset #911.
Also updated wikia documentation - http://chdk.wikia.com/wiki/A570_IS#CHDK_specialities
« Last Edit: 05 / July / 2010, 17:25:54 by fe50 »


*

Offline dvip

  • ****
  • 451
Re: A570 Underwater need to move the Alt button
« Reply #14 on: 05 / July / 2010, 18:03:39 »
@fe50,
This would be useful in the A590IS too.

Re: A570 Underwater need to move the Alt button
« Reply #15 on: 08 / July / 2010, 23:34:19 »
Glad that worked, mantraguy.  I'll take a look at the G10 and A590.

For those interested, my code changes for the A710 are below. Unfortunately, I had to change some code in generic/kbd.c, which means this will probably cause problems for other cameras.  I'm sure there's a better way to do it but I haven't looked into it.

I'm having trouble creating a single unified diff in CHDK-Shell so here are the individual diffs, based on revision 908.

core/gui.c:
Code: [Select]
1443,1445d1442
< #elif defined(CAMERA_a710)
<     static const char* names[]={ "Print", "Display"};
<     static const int keys[] = {KEY_PRINT, KEY_DISPLAY};

platform/generic/kbd.c:
Code: [Select]
17c17
< static long alt_mode_key_mask = 0x00000800;
---
>
304d303
<       physw_status[1] |= alt_mode_key_mask;

platform/a710/kbd.c:
Code: [Select]
35,44d34
< void kbd_set_alt_mode_key_mask(long key)
< {
<     int i;
<     for (i=0; keymap[i].hackkey; ++i) {
< if (keymap[i].hackkey == key) {
<     alt_mode_key_mask = keymap[i].canonkey;
<     return;
< }
<     }
< }

include/camera.h:
Code: [Select]
824d823
<     #define CAM_ADJUSTABLE_ALT_BUTTON   1

Re: A570 Underwater need to move the Alt button
« Reply #16 on: 09 / July / 2010, 01:04:47 »
Oops, didn't realize the G10 wasn't ported yet.

Here's the change for the A590. As with the A710, I don't have this camera so I don't know if it'll work. I also submitted my diff file on Mantis, so if this works hopefully it'll make it into the trunk.

http://chdk.kernreaktor.org/mantis/view.php?id=344

*

Offline dvip

  • ****
  • 451
Re: A570 Underwater need to move the Alt button
« Reply #17 on: 09 / July / 2010, 10:31:58 »
@Rorschach,
I won't have my A590IS for the next weeks but
as soon as I get it back I will test it.
Thanks for the changes and keep up the great work.


*

Offline ACR

  • *
  • 9
Re: A570 Underwater need to move the Alt button
« Reply #18 on: 10 / July / 2010, 08:42:31 »
Is there any chance that something similiar is available for the Ixus 85i, going on a diving trip next week and would be great to be able to access all the functions underwater. :)

*

Offline dvip

  • ****
  • 451
Re: A570 and A590IS Underwater need to move the Alt button
« Reply #19 on: 24 / July / 2010, 12:18:48 »
@Rorschach,
Tested in the A590IS and it works.
I think this can be added to the root/trunk.


 

Related Topics