Author Topic: A570 Underwater need to move the Alt button  (Read 3115 times)

Offline Rorschach

  • Rookie
  • *
  • Posts: 8
Re: A570 Underwater need to move the Alt button
« Reply #15 on: 09 / July / 2010, 08: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

Offline Rorschach

  • Rookie
  • *
  • Posts: 8
Re: A570 Underwater need to move the Alt button
« Reply #16 on: 09 / July / 2010, 10: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

  • Full Member
  • ***
  • Posts: 169
Re: A570 Underwater need to move the Alt button
« Reply #17 on: 09 / July / 2010, 19: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

  • Rookie
  • *
  • Posts: 9
Re: A570 Underwater need to move the Alt button
« Reply #18 on: 10 / July / 2010, 17: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

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


Offline fe50

  • Guru Member
  • ******
  • Posts: 2602
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
Re: A570 Underwater need to move the Alt button
« Reply #20 on: 01 / August / 2010, 13:41:28 »
Here's the change for the A590.

Tested in the A590IS and it works.
I think this can be added to the root/trunk.

Done, changeset #917.

Offline blackhole

  • Jr. Member
  • **
  • Posts: 65
  • A590IS 101b
Re: A570 Underwater need to move the Alt button
« Reply #21 on: 04 / August / 2010, 00:45:31 »

Offline blackhole

  • Jr. Member
  • **
  • Posts: 65
  • A590IS 101b
Re: A570 Underwater need to move the Alt button
« Reply #22 on: 04 / August / 2010, 00:48:30 »

Offline blackhole

  • Jr. Member
  • **
  • Posts: 65
  • A590IS 101b
Re: A570 Underwater need to move the Alt button
« Reply #23 on: 04 / August / 2010, 00:50:00 »
« Last Edit: 04 / August / 2010, 00:54:32 by blackhole »

CHDK Forum

Re: A570 Underwater need to move the Alt button
« Reply #23 on: 04 / August / 2010, 00:50:00 »

Offline blackhole

  • Jr. Member
  • **
  • Posts: 65
  • A590IS 101b
Re: A570 Underwater need to move the Alt button
« Reply #24 on: 04 / August / 2010, 00:56:06 »

Offline teiyo

  • Rookie
  • *
  • Posts: 9
Re: A570 Underwater need to move the Alt button
« Reply #25 on: 22 / February / 2011, 02:52:10 »
I bought it for underwater use and the Canon housing doesn't have a "Print" button that is the "Alt" button in this version.  I had a search in the forum and found a guy who thinks ago that there was someway to change the code to refer to one of the other buttons.  I know nothing about writing/compiling code...
Mike

I have almost the same problem: underwater housing for my G11 doesn`t support wheel for manual apperture, shutter or focus setup :( But long push of the Direct Print button simultaneously with left/right click on the wheel in manual firmware mode is equal to wheel turn!

CHDK helps me a lot with badpixels, informative indicators and other great capabilities, and it is a real trouble to use underwater housing without CHDK! :'(

Please, dear builders and programmers, HELP! I believe that it is trivial for you to make ALT button ajustable from CHDK menu (it is so for several other versions of camera as i know)!  :) Because source code edited once will not work with new versions of CHDK i guess...  ???

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal