Enable Morse input mode in the virtual keyboard for gigabeat, use MENU+SELECT to switch between modes.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12606 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nils Wallménius 2007-03-04 21:59:00 +00:00
parent 198772a6b2
commit 0eb1443614
2 changed files with 6 additions and 1 deletions

View file

@ -253,12 +253,14 @@ static const struct button_mapping button_context_keyboard[] = {
{ ACTION_KBD_PAGE_FLIP, BUTTON_POWER|BUTTON_MENU, BUTTON_NONE },
{ ACTION_KBD_DONE, BUTTON_POWER|BUTTON_REL, BUTTON_POWER },
{ ACTION_KBD_ABORT, BUTTON_A, BUTTON_NONE },
{ ACTION_KBD_BACKSPACE, BUTTON_MENU, BUTTON_NONE },
{ ACTION_KBD_BACKSPACE, BUTTON_MENU|BUTTON_REL, BUTTON_MENU },
{ ACTION_KBD_BACKSPACE, BUTTON_MENU|BUTTON_REPEAT, BUTTON_NONE },
{ ACTION_KBD_UP, BUTTON_UP, BUTTON_NONE },
{ ACTION_KBD_UP, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE },
{ ACTION_KBD_DOWN, BUTTON_DOWN, BUTTON_NONE },
{ ACTION_KBD_DOWN, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE },
{ ACTION_KBD_MORSE_INPUT, BUTTON_MENU|BUTTON_SELECT, BUTTON_NONE },
{ ACTION_KBD_MORSE_SELECT, BUTTON_SELECT|BUTTON_REL, BUTTON_NONE },
LAST_ITEM_IN_LIST
}; /* button_context_keyboard */

View file

@ -65,6 +65,9 @@
#elif CONFIG_KEYPAD == IRIVER_H10_PAD
#define KBD_MODES /* iriver H10 uses 2 modes, picker and line edit */
#define KBD_MORSE_INPUT
#elif CONFIG_KEYPAD == GIGABEAT_PAD
#define KBD_MORSE_INPUT
#endif
struct keyboard_parameters {