summaryrefslogtreecommitdiff
path: root/apps/plugins/blackjack.c
diff options
context:
space:
mode:
authorMarianne Arnold <pixelma@rockbox.org>2007-09-20 10:49:48 +0000
committerMarianne Arnold <pixelma@rockbox.org>2007-09-20 10:49:48 +0000
commit12ddb8ea0d8dbaa38703c37551fcd5c5267819e6 (patch)
treee679031afc87caf181d21cce816aff540d4a5cb0 /apps/plugins/blackjack.c
parent7b71787bd8dc1f570d2270a312438f86b66e3456 (diff)
downloadrockbox-12ddb8ea0d8dbaa38703c37551fcd5c5267819e6.tar.gz
rockbox-12ddb8ea0d8dbaa38703c37551fcd5c5267819e6.zip
Enable plugins on the Sansa C200. Large parts taken from patch FS#7749 by Max Kelley with tweaks, bit of cleanup and additional bitmaps by me. Some of the now enabled plugins could still be improved in regard to screen size adaptation or keymaps but this way it can easily be done later and one by one. The rather ugly 'ifndef's I added temporaryly in plugins/SOURCES will also go one by one. Plugin button actions cause some quirks in a few plugins (e.g. 'clock') but since it's not critical , the bitmaps were already done and it makes a good example for discussing plugin button actions, I thought it could go in.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14771 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/blackjack.c')
-rw-r--r--apps/plugins/blackjack.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/plugins/blackjack.c b/apps/plugins/blackjack.c
index c4b424143d..2ece48d75d 100644
--- a/apps/plugins/blackjack.c
+++ b/apps/plugins/blackjack.c
@@ -173,6 +173,21 @@ PLUGIN_HEADER
173#define BJACK_RIGHT BUTTON_RIGHT 173#define BJACK_RIGHT BUTTON_RIGHT
174#define BJACK_LEFT BUTTON_LEFT 174#define BJACK_LEFT BUTTON_LEFT
175 175
176#elif CONFIG_KEYPAD == SANSA_C200_PAD
177#define BJACK_START BUTTON_SELECT
178#define BJACK_QUIT BUTTON_POWER
179#define BJACK_MAX (BUTTON_REC|BUTTON_UP)
180#define BJACK_MIN (BUTTON_REC|BUTTON_VOL_DOWN)
181#define BJACK_HIT BUTTON_SELECT
182#define BJACK_STAY BUTTON_RIGHT
183#define BJACK_DOUBLEDOWN BUTTON_LEFT
184#define BJACK_SCORES BUTTON_VOL_UP
185#define BJACK_RESUME BUTTON_REC
186#define BJACK_UP BUTTON_UP
187#define BJACK_DOWN BUTTON_DOWN
188#define BJACK_RIGHT BUTTON_RIGHT
189#define BJACK_LEFT BUTTON_LEFT
190
176#elif CONFIG_KEYPAD == ELIO_TPJ1022_PAD 191#elif CONFIG_KEYPAD == ELIO_TPJ1022_PAD
177#define BJACK_START BUTTON_MAIN 192#define BJACK_START BUTTON_MAIN
178#define BJACK_QUIT BUTTON_POWER 193#define BJACK_QUIT BUTTON_POWER