From 24f4a2a8cfd561657ce25ebf93470716f07397fe Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Thu, 26 Oct 2006 13:38:09 +0000 Subject: Allow the Sansa e200 UI simulator to be built. Thanks to Andre Smith for the nice image of the Sansa. Lots more to be done including testing and tweaking the keymaps and modifying the plugins for the Sansa's 176x220 LCD. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11351 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/sokoban.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'apps/plugins/sokoban.c') diff --git a/apps/plugins/sokoban.c b/apps/plugins/sokoban.c index 06788d4806..fbbbf3ea06 100644 --- a/apps/plugins/sokoban.c +++ b/apps/plugins/sokoban.c @@ -102,6 +102,16 @@ extern const fb_data sokoban_tiles[]; #define SOKOBAN_LEVEL_DOWN (BUTTON_POWER | BUTTON_DOWN) #define SOKOBAN_LEVEL_REPEAT BUTTON_SELECT +#elif (CONFIG_KEYPAD == SANSA_E200_PAD) +#define SOKOBAN_UP BUTTON_UP +#define SOKOBAN_DOWN BUTTON_DOWN +#define SOKOBAN_QUIT BUTTON_POWER +#define SOKOBAN_UNDO_PRE BUTTON_SELECT +#define SOKOBAN_UNDO (BUTTON_SELECT | BUTTON_UP) +#define SOKOBAN_LEVEL_UP (BUTTON_SELECT | BUTTON_RIGHT) +#define SOKOBAN_LEVEL_DOWN (BUTTON_SELECT | BUTTON_LEFT) +#define SOKOBAN_LEVEL_REPEAT BUTTON_REC + #elif (CONFIG_KEYPAD == IRIVER_H10_PAD) #define SOKOBAN_UP BUTTON_SCROLL_UP #define SOKOBAN_DOWN BUTTON_SCROLL_DOWN -- cgit v1.2.3