Like most Canon cameras, the zoom lever has 2 speeds:
How can I detect the fast zoom buttons in LUA?
There's set_zoom_speed for scripts, but I don't know whether it's implemented for the SX40.
I'm not too sure its available on recent cameras per : http://chdk.setepontos.com/index.php?topic=7071.msg76260#msg76260
You're right. SX40: NHSTUB(SetZoomActuatorSpeedPercent, NULL_SUB)
Two more keys (KEY_FAST_ZOOM_IN & KEY_FAST_ZOOM_OUT) that you can look for in the sigfinder !
The keys are already known, but can not be used in scripts, look into core/script.c .
Does the sigfinder actually find both the slow and fast zoom keys ?
However, the creator of the port - philmoz - has included all zoom keys in the port's kbd.c which makes the sigfinder question superfluous here.
I think the list in core/script.c could/should be expanded to include the extra zoom keys too.
static const struct Keynames { int keyid; char *keyname;} keynames[] = { { KEY_FAST_ZOOM_IN, "fast_zoom_in" }, //** added { KEY_FAST_ZOOM_OUT, "fast_zoom_out" }, //** added { 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_SHOOT_FULL_ONLY, "shoot_full_only" }, { 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" }, { KEY_ZOOM_ASSIST, "zoom_assist"}, { KEY_AE_LOCK, "ae_lock" }, { KEY_METERING, "metering_mode"}, { 0xFF, "remote" }, { 0xFFFF, "no_key" },};
Started by wowsers51 Creative Uses of CHDK
Started by radioman193 General Help and Assistance on using CHDK stable releases
Started by tardenoisean Script Writing
Started by evilpumpkin « 1 2 » Script Writing
Started by blenderbach General Chat