forked from len0rd/rockbox
Save a bit of binary size on targets which cannot record but share keymap with ones that can (Ondio SP, iPod G1/G2, Minis, and currently iPod G3).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18007 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5cb85a81d2
commit
349ee09216
2 changed files with 13 additions and 3 deletions
|
|
@ -167,6 +167,7 @@ static const struct button_mapping button_context_keyboard[] = {
|
|||
LAST_ITEM_IN_LIST
|
||||
}; /* button_context_keyboard */
|
||||
|
||||
#ifdef HAVE_RECORDING
|
||||
const struct button_mapping button_context_recscreen[] = {
|
||||
|
||||
{ ACTION_REC_NEWFILE, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_PLAY },
|
||||
|
|
@ -184,6 +185,7 @@ const struct button_mapping button_context_recscreen[] = {
|
|||
|
||||
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD)
|
||||
}; /* button_context_recscreen */
|
||||
#endif
|
||||
|
||||
/* get_context_mapping returns a pointer to one of the above defined arrays depending on the context */
|
||||
const struct button_mapping* get_context_mapping(int context)
|
||||
|
|
@ -222,8 +224,10 @@ const struct button_mapping* get_context_mapping(int context)
|
|||
return button_context_pitchscreen;
|
||||
case CONTEXT_KEYBOARD:
|
||||
return button_context_keyboard;
|
||||
#ifdef HAVE_RECORDING
|
||||
case CONTEXT_RECSCREEN:
|
||||
return button_context_recscreen;
|
||||
#endif
|
||||
default:
|
||||
return button_context_standard;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue