I want to make a build that has no working chdk-keys. To prevent the wife from turning of DNG-saving, and other stuff!
Here the other day she came home with lots of beautiful images at 640x480, but just a few DNG's, taken before she turned
it off. She's going on an vacation with friends soon, and we need a way to make the camera "fool proof".
The plan is to use a normal build to set all settings, then replace the binaries to one with no keyboard support.
In kbd.c i find
static KeyMap keymap[] = {
/* tiny bug: key order matters. see kbd_get_pressed_key()
* for example
*/
{ KEY_UP , 0x00000001 },
{ KEY_DOWN , 0x00000002 },
{ KEY_LEFT , 0x00000008 },
{ KEY_RIGHT , 0x00000004 },
{ KEY_SET , 0x00000100 },
{ KEY_SHOOT_FULL, 0x00000030 }, // note 3 here!
{ KEY_SHOOT_HALF, 0x00000010 },
{ KEY_ZOOM_IN , 0x00000040 },
{ KEY_ZOOM_OUT , 0x00000080 },
{ KEY_MENU , 0x00000200 },
{ KEY_DISPLAY , 0x00000400 },
{ KEY_PRINT , 0x00001000 },
{ KEY_ERASE , 0x00000800 },
{ KEY_DUMMY , 0x00001000 },
{ 0, 0 }
};
Just to test, i replaced all of them with 0x00000000 and compiled, and it seems to do what i want,
but what would be the right or better way to do this?
Camera is A540.