That's my pleasure to share source code. The source code is as attachment 1.
by the way, I add more shortcut for underwater use as follows:
#define SHORTCUT_AV_MAX 16 // AV F2.8-F16
#define SHORTCUT_TV_INIT 29 // Shutter speed 1/30 start
#define SHORTCUT_TV_MAX 52 // Shutter speed 1/2500 end
#define SHORTCUT_TOGGLE_RAW KEY_ERASE
#define SHORTCUT_DISABLE_OVERRIDES KEY_EXPO_CORR //david s80
#define SHORTCUT_AV_UP KEY_RIGHT //david s80
#define SHORTCUT_AV_DOWN KEY_LEFT //david s80
#define SHORTCUT_TV_UP KEY_UP //david s80
#define SHORTCUT_TV_DOWN KEY_DOWN //david s80
The attachment 2 is the sample of underwater that took in Bohol island last week.