diff options
author | Jens Arnold <amiconn@rockbox.org> | 2008-03-22 10:24:28 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2008-03-22 10:24:28 +0000 |
commit | 29361abf744ed116cec04ca03e754ddd2794b76c (patch) | |
tree | d336dd19570faed037aef9064ce3c490c50ed6df /apps/plugins/solitaire.c | |
parent | bca8edd856cee3a3b469ef9fe2770a191b590fde (diff) | |
download | rockbox-29361abf744ed116cec04ca03e754ddd2794b76c.tar.gz rockbox-29361abf744ed116cec04ca03e754ddd2794b76c.zip |
Adapt most single-file plugins to the M3 keypad and screen. It's still preliminary, as many plugins now can't be left without the remote. The plugins need to be converted to use the action API (but not pluginlib actions). Plugins are not enabled yet. * Simplify the bitmap handling in the source of some plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16737 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/solitaire.c')
-rw-r--r-- | apps/plugins/solitaire.c | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/apps/plugins/solitaire.c b/apps/plugins/solitaire.c index fba2bf55a4..62f60c7eb4 100644 --- a/apps/plugins/solitaire.c +++ b/apps/plugins/solitaire.c | |||
@@ -275,11 +275,36 @@ static struct plugin_api* rb; | |||
275 | # define HK_CUR2STACK "SELECT.." | 275 | # define HK_CUR2STACK "SELECT.." |
276 | # define HK_REM2STACK "DISPLAY+RIGHT" | 276 | # define HK_REM2STACK "DISPLAY+RIGHT" |
277 | 277 | ||
278 | #elif CONFIG_KEYPAD == IAUDIO_M3_PAD | ||
279 | # define SOL_QUIT BUTTON_RC_REC | ||
280 | # define SOL_UP BUTTON_RC_VOL_UP | ||
281 | # define SOL_DOWN BUTTON_RC_VOL_DOWN | ||
282 | # define SOL_LEFT BUTTON_RC_REW | ||
283 | # define SOL_RIGHT BUTTON_RC_FF | ||
284 | # define SOL_MOVE BUTTON_RC_PLAY | ||
285 | # define SOL_DRAW_PRE BUTTON_RC_MENU | ||
286 | # define SOL_DRAW (BUTTON_RC_MENU | BUTTON_REL) | ||
287 | # define SOL_REM2CUR_PRE BUTTON_RC_MENU | ||
288 | # define SOL_REM2CUR (BUTTON_RC_MENU | BUTTON_REPEAT) | ||
289 | # define SOL_CUR2STACK_PRE BUTTON_RC_MODE | ||
290 | # define SOL_CUR2STACK (BUTTON_RC_MODE | BUTTON_REL) | ||
291 | # define SOL_REM2STACK_PRE BUTTON_RC_MODE | ||
292 | # define SOL_REM2STACK (BUTTON_RC_MODE | BUTTON_REPEAT) | ||
293 | # define HK_LR "REW/FF" | ||
294 | # define HK_UD "VOL UP/DOWN" | ||
295 | # define HK_MOVE "PLAY" | ||
296 | # define HK_DRAW "MENU" | ||
297 | # define HK_REM2CUR "MENU.." | ||
298 | # define HK_CUR2STACK "MODE" | ||
299 | # define HK_REM2STACK "MODE.." | ||
300 | |||
278 | #else | 301 | #else |
279 | #error No keymap defined! | 302 | #error No keymap defined! |
280 | #endif | 303 | #endif |
281 | 304 | ||
282 | #define HK_LR "LEFT/RIGHT" | 305 | #ifndef HK_LR |
306 | # define HK_LR "LEFT/RIGHT" | ||
307 | #endif | ||
283 | #ifndef HK_UD | 308 | #ifndef HK_UD |
284 | # define HK_UD "UP/DOWN" | 309 | # define HK_UD "UP/DOWN" |
285 | #endif | 310 | #endif |