summaryrefslogtreecommitdiff
path: root/apps/plugins/spacerocks.c
diff options
context:
space:
mode:
authorWill Robertson <aliask@rockbox.org>2008-02-17 12:23:02 +0000
committerWill Robertson <aliask@rockbox.org>2008-02-17 12:23:02 +0000
commit8215b34fdb7228283a055b1e4f04eb15cdf89d58 (patch)
tree6f3b3aa2098a514da27350d2d58f9c9c8ffe219b /apps/plugins/spacerocks.c
parentdf71f4c50930da1ea7121786d2ba3961d5426abf (diff)
downloadrockbox-8215b34fdb7228283a055b1e4f04eb15cdf89d58.zip
rockbox-8215b34fdb7228283a055b1e4f04eb15cdf89d58.tar.gz
rockbox-8215b34fdb7228283a055b1e4f04eb15cdf89d58.tar.bz2
rockbox-8215b34fdb7228283a055b1e4f04eb15cdf89d58.tar.xz
Plugins now enabled and working for the Gigabeat S.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16323 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/spacerocks.c')
-rw-r--r--apps/plugins/spacerocks.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/plugins/spacerocks.c b/apps/plugins/spacerocks.c
index 2ea1dc8..742a970 100644
--- a/apps/plugins/spacerocks.c
+++ b/apps/plugins/spacerocks.c
@@ -161,6 +161,19 @@ static struct plugin_api* rb; /* global api struct pointer */
#define AST_FIRE BUTTON_REW
#define AST_FIRE_REP BUTTON_REW | BUTTON_REPEAT
+#elif (CONFIG_KEYPAD == GIGABEAT_S_PAD)
+#define AST_PAUSE BUTTON_PLAY
+#define AST_QUIT BUTTON_BACK
+#define AST_THRUST_REP BUTTON_UP | BUTTON_REPEAT
+#define AST_THRUST BUTTON_UP
+#define AST_HYPERSPACE BUTTON_DOWN
+#define AST_LEFT BUTTON_LEFT
+#define AST_LEFT_REP BUTTON_LEFT | BUTTON_REPEAT
+#define AST_RIGHT BUTTON_RIGHT
+#define AST_RIGHT_REP (BUTTON_RIGHT | BUTTON_REPEAT)
+#define AST_FIRE BUTTON_SELECT
+#define AST_FIRE_REP BUTTON_SELECT | BUTTON_REPEAT
+
#endif
#define ABS(x) ((x)>0?(x):-(x))