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/spacerocks.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/spacerocks.c')
-rw-r--r-- | apps/plugins/spacerocks.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/plugins/spacerocks.c b/apps/plugins/spacerocks.c index 5d5a1bac6b..7de18e5459 100644 --- a/apps/plugins/spacerocks.c +++ b/apps/plugins/spacerocks.c | |||
@@ -187,6 +187,19 @@ static struct plugin_api* rb; /* global api struct pointer */ | |||
187 | #define AST_FIRE BUTTON_SELECT | 187 | #define AST_FIRE BUTTON_SELECT |
188 | #define AST_FIRE_REP BUTTON_SELECT | BUTTON_REPEAT | 188 | #define AST_FIRE_REP BUTTON_SELECT | BUTTON_REPEAT |
189 | 189 | ||
190 | #elif CONFIG_KEYPAD == IAUDIO_M3_PAD | ||
191 | #define AST_PAUSE BUTTON_RC_PLAY | ||
192 | #define AST_QUIT BUTTON_RC_REC | ||
193 | #define AST_THRUST_REP BUTTON_RC_VOL_UP | BUTTON_REPEAT | ||
194 | #define AST_THRUST BUTTON_RC_VOL_UP | ||
195 | #define AST_HYPERSPACE BUTTON_RC_VOL_DOWN | ||
196 | #define AST_LEFT BUTTON_RC_REW | ||
197 | #define AST_LEFT_REP (BUTTON_RC_REW | BUTTON_REPEAT) | ||
198 | #define AST_RIGHT BUTTON_RC_FF | ||
199 | #define AST_RIGHT_REP (BUTTON_RC_FF | BUTTON_REPEAT) | ||
200 | #define AST_FIRE BUTTON_RC_MODE | ||
201 | #define AST_FIRE_REP (BUTTON_RC_MODE | BUTTON_REPEAT) | ||
202 | |||
190 | #else | 203 | #else |
191 | #error No keymap defined! | 204 | #error No keymap defined! |
192 | #endif | 205 | #endif |