G7 keys - Script Writing - CHDK Forum  

G7 keys

  • 2 Replies
  • 2575 Views
G7 keys
« on: 25 / May / 2008, 15:56:43 »
Advertisements
Hello and thanks in advance.

I would like to write a script, but I don't know certain keys of the camera.

My problem is that I don't know all the key identifiers for the function "is_key". I found some of them:
is_key "menu", "set", "right", "left", "up", "down", "delete", but there are a couple missing (on upper right side of the camera)

Does anybody know the name of these two buttons?   :o

Thanks

*

Offline Jucifer

  • *****
  • 251
  • [A710IS]
Re: G7 keys
« Reply #1 on: 26 / May / 2008, 11:38:03 »
there's this in core/kbd.c:

Code: [Select]
keynames[] = {
    { KEY_UP,           "up"         },
    { KEY_DOWN,         "down"       },
    { KEY_LEFT,         "left"       },
    { KEY_RIGHT,        "right"      },
    { KEY_SET,          "set"        },
    { KEY_SHOOT_HALF,   "shoot_half" },
    { KEY_SHOOT_FULL,   "shoot_full" },
    { KEY_ZOOM_IN,      "zoom_in"    },
    { KEY_ZOOM_OUT,     "zoom_out"   },
    { KEY_MENU,         "menu"       },
    { KEY_DISPLAY,      "display"    },
    { KEY_PRINT,        "print"      },
    { KEY_ERASE,        "erase"      },
    { KEY_ISO,          "iso"        },
    { KEY_FLASH,        "flash"      },
    { KEY_MF,           "mf"         },
    { KEY_MACRO,        "macro"      },
    { KEY_VIDEO,        "video"      },
    { KEY_TIMER,        "timer"      },
    { KEY_EXPO_CORR,    "expo_corr"  },
    { KEY_MICROPHONE,   "fe"         },
    { 0xFF,             "remote"     },
{ 0xFFFF,           "no_key"     },
}

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: G7 keys
« Reply #2 on: 26 / May / 2008, 11:54:00 »
"fe" (*) and "expo_corr" (+/-) for G7.

 

Related Topics