diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2008-10-31 18:54:37 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2008-10-31 18:54:37 +0000 |
commit | cd9b1379fff9b2c2d4bb071c470053e02f4e2dd5 (patch) | |
tree | 2ec0fe5c5b1e66962fbbe4d21cb4d0ce0c9543e1 /apps/plugins | |
parent | c5685ed72d206c5a1c0dd2329029e2398bf9cac4 (diff) | |
download | rockbox-cd9b1379fff9b2c2d4bb071c470053e02f4e2dd5.tar.gz rockbox-cd9b1379fff9b2c2d4bb071c470053e02f4e2dd5.zip |
Sansa Clip simulator
First draft at keymapping based on e200
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18948 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/lib/pluginlib_actions.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/plugins/lib/pluginlib_actions.c b/apps/plugins/lib/pluginlib_actions.c index 26ef590522..a8a4e9c2c3 100644 --- a/apps/plugins/lib/pluginlib_actions.c +++ b/apps/plugins/lib/pluginlib_actions.c | |||
@@ -87,7 +87,8 @@ const struct button_mapping generic_directions[] = | |||
87 | || (CONFIG_KEYPAD == SANSA_C200_PAD) \ | 87 | || (CONFIG_KEYPAD == SANSA_C200_PAD) \ |
88 | || (CONFIG_KEYPAD == GIGABEAT_S_PAD) \ | 88 | || (CONFIG_KEYPAD == GIGABEAT_S_PAD) \ |
89 | || (CONFIG_KEYPAD == MROBE100_PAD) \ | 89 | || (CONFIG_KEYPAD == MROBE100_PAD) \ |
90 | || (CONFIG_KEYPAD == PHILIPS_SA9200_PAD) | 90 | || (CONFIG_KEYPAD == PHILIPS_SA9200_PAD) \ |
91 | || (CONFIG_KEYPAD == SANSA_CLIP_PAD) | ||
91 | { PLA_UP, BUTTON_UP, BUTTON_NONE}, | 92 | { PLA_UP, BUTTON_UP, BUTTON_NONE}, |
92 | { PLA_DOWN, BUTTON_DOWN, BUTTON_NONE}, | 93 | { PLA_DOWN, BUTTON_DOWN, BUTTON_NONE}, |
93 | { PLA_LEFT, BUTTON_LEFT, BUTTON_NONE}, | 94 | { PLA_LEFT, BUTTON_LEFT, BUTTON_NONE}, |
@@ -186,7 +187,8 @@ const struct button_mapping generic_left_right_fire[] = | |||
186 | || (CONFIG_KEYPAD == IRIVER_IFP7XX_PAD) \ | 187 | || (CONFIG_KEYPAD == IRIVER_IFP7XX_PAD) \ |
187 | || (CONFIG_KEYPAD == GIGABEAT_S_PAD) \ | 188 | || (CONFIG_KEYPAD == GIGABEAT_S_PAD) \ |
188 | || (CONFIG_KEYPAD == MROBE100_PAD) \ | 189 | || (CONFIG_KEYPAD == MROBE100_PAD) \ |
189 | || (CONFIG_KEYPAD == PHILIPS_SA9200_PAD) | 190 | || (CONFIG_KEYPAD == PHILIPS_SA9200_PAD) \ |
191 | || (CONFIG_KEYPAD == SANSA_CLIP_PAD) | ||
190 | { PLA_LEFT, BUTTON_LEFT, BUTTON_NONE}, | 192 | { PLA_LEFT, BUTTON_LEFT, BUTTON_NONE}, |
191 | { PLA_RIGHT, BUTTON_RIGHT, BUTTON_NONE}, | 193 | { PLA_RIGHT, BUTTON_RIGHT, BUTTON_NONE}, |
192 | { PLA_LEFT_REPEAT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE}, | 194 | { PLA_LEFT_REPEAT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE}, |
@@ -359,7 +361,7 @@ const struct button_mapping generic_actions[] = | |||
359 | {PLA_MENU, BUTTON_DOWN, BUTTON_NONE}, | 361 | {PLA_MENU, BUTTON_DOWN, BUTTON_NONE}, |
360 | {PLA_FIRE, BUTTON_SELECT, BUTTON_NONE}, | 362 | {PLA_FIRE, BUTTON_SELECT, BUTTON_NONE}, |
361 | {PLA_FIRE_REPEAT, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_NONE}, | 363 | {PLA_FIRE_REPEAT, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_NONE}, |
362 | #elif CONFIG_KEYPAD == SANSA_C200_PAD | 364 | #elif CONFIG_KEYPAD == SANSA_C200_PAD || CONFIG_KEYPAD == SANSA_CLIP_PAD |
363 | {PLA_QUIT, BUTTON_POWER, BUTTON_NONE}, | 365 | {PLA_QUIT, BUTTON_POWER, BUTTON_NONE}, |
364 | {PLA_START, BUTTON_UP, BUTTON_NONE}, | 366 | {PLA_START, BUTTON_UP, BUTTON_NONE}, |
365 | {PLA_MENU, BUTTON_DOWN, BUTTON_NONE}, | 367 | {PLA_MENU, BUTTON_DOWN, BUTTON_NONE}, |
@@ -437,7 +439,8 @@ const struct button_mapping generic_increase_decrease[] = | |||
437 | || (CONFIG_KEYPAD == ONDIO_PAD) \ | 439 | || (CONFIG_KEYPAD == ONDIO_PAD) \ |
438 | || (CONFIG_KEYPAD == GIGABEAT_S_PAD) \ | 440 | || (CONFIG_KEYPAD == GIGABEAT_S_PAD) \ |
439 | || (CONFIG_KEYPAD == MROBE100_PAD) \ | 441 | || (CONFIG_KEYPAD == MROBE100_PAD) \ |
440 | || (CONFIG_KEYPAD == PHILIPS_SA9200_PAD) | 442 | || (CONFIG_KEYPAD == PHILIPS_SA9200_PAD) \ |
443 | || (CONFIG_KEYPAD == SANSA_CLIP_PAD) | ||
441 | {PLA_INC, BUTTON_UP, BUTTON_NONE}, | 444 | {PLA_INC, BUTTON_UP, BUTTON_NONE}, |
442 | {PLA_DEC, BUTTON_DOWN, BUTTON_NONE}, | 445 | {PLA_DEC, BUTTON_DOWN, BUTTON_NONE}, |
443 | {PLA_INC_REPEAT, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE}, | 446 | {PLA_INC_REPEAT, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE}, |