forked from len0rd/rockbox
Enable plugins on the Sansa C200. Large parts taken from patch FS#7749 by Max Kelley with tweaks, bit of cleanup and additional bitmaps by me. Some of the now enabled plugins could still be improved in regard to screen size adaptation or keymaps but this way it can easily be done later and one by one. The rather ugly 'ifndef's I added temporaryly in plugins/SOURCES will also go one by one. Plugin button actions cause some quirks in a few plugins (e.g. 'clock') but since it's not critical , the bitmaps were already done and it makes a good example for discussing plugin button actions, I thought it could go in.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14771 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7b71787bd8
commit
12ddb8ea0d
67 changed files with 344 additions and 55 deletions
|
@ -94,7 +94,8 @@ static const struct button_mapping generic_directions[] =
|
|||
|| (CONFIG_KEYPAD == GIGABEAT_PAD) \
|
||||
|| (CONFIG_KEYPAD == RECORDER_PAD) \
|
||||
|| (CONFIG_KEYPAD == ARCHOS_AV300_PAD) \
|
||||
|| (CONFIG_KEYPAD == IRIVER_IFP7XX_PAD)
|
||||
|| (CONFIG_KEYPAD == IRIVER_IFP7XX_PAD) \
|
||||
|| (CONFIG_KEYPAD == SANSA_C200_PAD)
|
||||
{ PLA_UP, BUTTON_UP, BUTTON_NONE},
|
||||
{ PLA_DOWN, BUTTON_DOWN, BUTTON_NONE},
|
||||
{ PLA_LEFT, BUTTON_LEFT, BUTTON_NONE},
|
||||
|
@ -142,6 +143,7 @@ static const struct button_mapping generic_directions[] =
|
|||
{ PLA_DOWN_REPEAT, BUTTON_SCROLL_DOWN|BUTTON_REPEAT, BUTTON_NONE},
|
||||
{ PLA_LEFT_REPEAT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE},
|
||||
{ PLA_RIGHT_REPEAT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE},
|
||||
|
||||
#else
|
||||
#error pluginlib_actions: Unsupported keypad
|
||||
#endif
|
||||
|
@ -191,14 +193,15 @@ static const struct button_mapping generic_left_right_fire[] =
|
|||
{ PLA_RIGHT_REPEAT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE},
|
||||
{ PLA_FIRE, BUTTON_PLAY, BUTTON_NONE},
|
||||
{ PLA_FIRE_REPEAT, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_NONE},
|
||||
#elif CONFIG_KEYPAD == ARCHOS_AV300_PAD
|
||||
#elif (CONFIG_KEYPAD == SANSA_C200_PAD) \
|
||||
|| (CONFIG_KEYPAD == ARCHOS_AV300_PAD)
|
||||
{ PLA_LEFT, BUTTON_LEFT, BUTTON_NONE},
|
||||
{ PLA_RIGHT, BUTTON_RIGHT, BUTTON_NONE},
|
||||
{ PLA_LEFT_REPEAT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE},
|
||||
{ PLA_RIGHT_REPEAT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE},
|
||||
{ PLA_FIRE, BUTTON_SELECT, BUTTON_NONE},
|
||||
{ PLA_FIRE_REPEAT, BUTTON_SELECT|BUTTON_REPEAT,BUTTON_NONE},
|
||||
#elif (CONFIG_KEYPAD == SANSA_E200_PAD)
|
||||
#elif (CONFIG_KEYPAD == SANSA_E200_PAD)
|
||||
{ PLA_LEFT, BUTTON_LEFT, BUTTON_NONE},
|
||||
{ PLA_RIGHT, BUTTON_RIGHT, BUTTON_NONE},
|
||||
{ PLA_LEFT_REPEAT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE},
|
||||
|
@ -285,6 +288,12 @@ static const struct button_mapping generic_actions[] =
|
|||
{PLA_MENU, BUTTON_DOWN, BUTTON_NONE},
|
||||
{PLA_FIRE, BUTTON_SELECT, BUTTON_NONE},
|
||||
{PLA_FIRE_REPEAT, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_NONE},
|
||||
#elif CONFIG_KEYPAD == SANSA_C200_PAD
|
||||
{PLA_QUIT, BUTTON_POWER, BUTTON_NONE},
|
||||
{PLA_START, BUTTON_UP, BUTTON_NONE},
|
||||
{PLA_MENU, BUTTON_DOWN, BUTTON_NONE},
|
||||
{PLA_FIRE, BUTTON_SELECT, BUTTON_NONE},
|
||||
{PLA_FIRE_REPEAT, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_NONE},
|
||||
#elif CONFIG_KEYPAD == IRIVER_H10_PAD
|
||||
{PLA_QUIT, BUTTON_POWER, BUTTON_NONE},
|
||||
{PLA_START, BUTTON_PLAY, BUTTON_NONE},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue