summaryrefslogtreecommitdiff
path: root/apps/plugins/sokoban.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2008-12-04 21:28:56 +0000
committerBjörn Stenberg <bjorn@haxx.se>2008-12-04 21:28:56 +0000
commitcea285d64e34f8c2ecce676f6239b59608597019 (patch)
treeaba19ec8c3b1d53ef2a8915ee5f5ed5500fd653f /apps/plugins/sokoban.c
parent203722136c5f50d7deab432739e991faa48e470f (diff)
downloadrockbox-cea285d64e34f8c2ecce676f6239b59608597019.tar.gz
rockbox-cea285d64e34f8c2ecce676f6239b59608597019.zip
Added keymaps for ZVM to plugins. Enabled zvm plugin building in tools/configure. FS#9605 by Adam Hogan and Robert Menes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19335 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/sokoban.c')
-rw-r--r--apps/plugins/sokoban.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/plugins/sokoban.c b/apps/plugins/sokoban.c
index 9a166a3fb4..4940ac24ab 100644
--- a/apps/plugins/sokoban.c
+++ b/apps/plugins/sokoban.c
@@ -314,6 +314,21 @@ PLUGIN_HEADER
314 314
315#define SOKOBAN_RC_MENU (BUTTON_MENU|BUTTON_STOP) 315#define SOKOBAN_RC_MENU (BUTTON_MENU|BUTTON_STOP)
316 316
317#elif CONFIG_KEYPAD == CREATIVEZVM_PAD
318#define SOKOBAN_LEFT BUTTON_LEFT
319#define SOKOBAN_RIGHT BUTTON_RIGHT
320#define SOKOBAN_UP BUTTON_UP
321#define SOKOBAN_DOWN BUTTON_DOWN
322#define SOKOBAN_MENU BUTTON_MENU
323#define SOKOBAN_UNDO BUTTON_BACK
324#define SOKOBAN_REDO (BUTTON_BACK | BUTTON_PLAY)
325#define SOKOBAN_LEVEL_DOWN (BUTTON_SELECT | BUTTON_DOWN)
326#define SOKOBAN_LEVEL_REPEAT (BUTTON_SELECT | BUTTON_RIGHT)
327#define SOKOBAN_LEVEL_UP (BUTTON_SELECT | BUTTON_UP)
328#define SOKOBAN_PAUSE BUTTON_PLAY
329#define BUTTON_SAVE BUTTON_CUSTOM
330#define BUTTON_SAVE_NAME "CUSTOM"
331
317#else 332#else
318#error No keymap defined! 333#error No keymap defined!
319#endif 334#endif