summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/pluginlib_actions.h
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-01-14 13:48:09 +0000
committerDave Chapman <dave@dchapman.com>2007-01-14 13:48:09 +0000
commitd64e626387e21dc6a7ab374f17dec1e902cd9779 (patch)
tree6a16bbf5de0becfd6588bff30c11c8ed9fd25c9e /apps/plugins/lib/pluginlib_actions.h
parent72f1027b3edae94ad9962c654519c2cab8566078 (diff)
downloadrockbox-d64e626387e21dc6a7ab374f17dec1e902cd9779.tar.gz
rockbox-d64e626387e21dc6a7ab374f17dec1e902cd9779.zip
Start of work on a port to the Archos 'AV300' (AV320/340/380) - a working UI simulator (but with a dummy background image for now) and the beginnings of the target-specific firmare code. Port is temporarily using a 2bpp LCD buffer format - the AV300 has a 320x240 colour (YCbCr-based) LCD which will need a new framebuffer format and drawing routines, but the LCD is also capable of various paletted bitmap modes, one of which has an identical framebuffer format to the greyscale ipods. Buttons (and hence the button mappings) are identical to the Archos Recorder, with the exception that the PLAY button on the Recorder is replaced by pressing the joystick on the AV300 (which I call BUTTON_SELECT). The initial port will begin by being strictly HWCODEC, but will evolve to be a hybrid SWCODEC/HWCODEC platform - it has a MAS3587F but also a main CPU (54MHz arm7tdmi plus DSP) capable of software decoding of at least some formats.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12008 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/pluginlib_actions.h')
-rw-r--r--apps/plugins/lib/pluginlib_actions.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/plugins/lib/pluginlib_actions.h b/apps/plugins/lib/pluginlib_actions.h
index b78163f25e..7ce43ce9e4 100644
--- a/apps/plugins/lib/pluginlib_actions.h
+++ b/apps/plugins/lib/pluginlib_actions.h
@@ -52,6 +52,7 @@ static const struct button_mapping generic_directions[] =
52 || (CONFIG_KEYPAD == IAUDIO_X5_PAD) \ 52 || (CONFIG_KEYPAD == IAUDIO_X5_PAD) \
53 || (CONFIG_KEYPAD == GIGABEAT_PAD) \ 53 || (CONFIG_KEYPAD == GIGABEAT_PAD) \
54 || (CONFIG_KEYPAD == RECORDER_PAD) \ 54 || (CONFIG_KEYPAD == RECORDER_PAD) \
55 || (CONFIG_KEYPAD == ARCHOS_AV300_PAD) \
55 || (CONFIG_KEYPAD == IRIVER_IFP7XX_PAD) 56 || (CONFIG_KEYPAD == IRIVER_IFP7XX_PAD)
56 { PLA_UP, BUTTON_UP, BUTTON_NONE}, 57 { PLA_UP, BUTTON_UP, BUTTON_NONE},
57 { PLA_DOWN, BUTTON_DOWN, BUTTON_NONE}, 58 { PLA_DOWN, BUTTON_DOWN, BUTTON_NONE},
@@ -145,6 +146,13 @@ static const struct button_mapping generic_left_right_fire[] =
145 { PLA_RIGHT_REPEAT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE}, 146 { PLA_RIGHT_REPEAT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE},
146 { PLA_FIRE, BUTTON_PLAY, BUTTON_NONE}, 147 { PLA_FIRE, BUTTON_PLAY, BUTTON_NONE},
147 { PLA_FIRE_REPEAT, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_NONE}, 148 { PLA_FIRE_REPEAT, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_NONE},
149#elif CONFIG_KEYPAD == ARCHOS_AV300_PAD
150 { PLA_LEFT, BUTTON_LEFT, BUTTON_NONE},
151 { PLA_RIGHT, BUTTON_RIGHT, BUTTON_NONE},
152 { PLA_LEFT_REPEAT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE},
153 { PLA_RIGHT_REPEAT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE},
154 { PLA_FIRE, BUTTON_SELECT, BUTTON_NONE},
155 { PLA_FIRE_REPEAT, BUTTON_SELECT|BUTTON_REPEAT,BUTTON_NONE},
148#elif (CONFIG_KEYPAD == SANSA_E200_PAD) 156#elif (CONFIG_KEYPAD == SANSA_E200_PAD)
149 { PLA_LEFT, BUTTON_LEFT, BUTTON_NONE}, 157 { PLA_LEFT, BUTTON_LEFT, BUTTON_NONE},
150 { PLA_RIGHT, BUTTON_RIGHT, BUTTON_NONE}, 158 { PLA_RIGHT, BUTTON_RIGHT, BUTTON_NONE},
@@ -199,6 +207,12 @@ static const struct button_mapping generic_actions[] =
199 {PLA_MENU, BUTTON_F1, BUTTON_NONE}, 207 {PLA_MENU, BUTTON_F1, BUTTON_NONE},
200 {PLA_FIRE, BUTTON_PLAY, BUTTON_NONE}, 208 {PLA_FIRE, BUTTON_PLAY, BUTTON_NONE},
201 {PLA_FIRE_REPEAT, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_NONE}, 209 {PLA_FIRE_REPEAT, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_NONE},
210#elif CONFIG_KEYPAD == ARCHOS_AV300_PAD
211 {PLA_QUIT, BUTTON_OFF, BUTTON_NONE},
212 {PLA_START, BUTTON_ON, BUTTON_NONE},
213 {PLA_MENU, BUTTON_F1, BUTTON_NONE},
214 {PLA_FIRE, BUTTON_SELECT, BUTTON_NONE},
215 {PLA_FIRE_REPEAT, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_NONE},
202#elif CONFIG_KEYPAD == ONDIO_PAD 216#elif CONFIG_KEYPAD == ONDIO_PAD
203 {PLA_QUIT, BUTTON_OFF, BUTTON_NONE}, 217 {PLA_QUIT, BUTTON_OFF, BUTTON_NONE},
204 {PLA_START, BUTTON_MENU, BUTTON_NONE}, 218 {PLA_START, BUTTON_MENU, BUTTON_NONE},