Ok final version of gui_keypad is attached.
changes:
- added cursor (you can change cursor and add/remove characters at middle of text)
- erase/display key will work like backspace
- integrated with CHDK
Usage:
Call function gui_keypad_init(char *text_buff, int text_length, int text_max_length)
//text_buff - pointer to text
//text_length - length of current text (0 to make clean entry)
//text_max_length - size of text buffer - 1
This fuction will change gui mode to GUI_MODE_KEYPAD, after user typed text, keypad will change gui mode to previous mode and then you can access typed text by text pointer passed to function.
I think this should be added to trunk after first module using keypad, for now this can wait on forum for future