summaryrefslogtreecommitdiff
path: root/apps/plugins/chessbox/chessbox.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-02-23 21:16:51 +0000
committerDave Chapman <dave@dchapman.com>2006-02-23 21:16:51 +0000
commita3cfe0a434fd1ef5e4a59e34499d10cd0211f76b (patch)
treeca8a479c1b6a73a75b829c8799813747e20408ac /apps/plugins/chessbox/chessbox.c
parente37654521144e1d224f0044268643f20e3b8a363 (diff)
downloadrockbox-a3cfe0a434fd1ef5e4a59e34499d10cd0211f76b.zip
rockbox-a3cfe0a434fd1ef5e4a59e34499d10cd0211f76b.tar.gz
rockbox-a3cfe0a434fd1ef5e4a59e34499d10cd0211f76b.tar.bz2
rockbox-a3cfe0a434fd1ef5e4a59e34499d10cd0211f76b.tar.xz
Fixes to Chessclock from Miguel (to make it work again after we broke his patch), plus iPod button mapping changes from me
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8816 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/chessbox/chessbox.c')
-rw-r--r--apps/plugins/chessbox/chessbox.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/apps/plugins/chessbox/chessbox.c b/apps/plugins/chessbox/chessbox.c
index d16497d..0d145ec 100644
--- a/apps/plugins/chessbox/chessbox.c
+++ b/apps/plugins/chessbox/chessbox.c
@@ -31,9 +31,6 @@ struct cb_command {
unsigned short mv;
};
-/* global rockbox api */
-static struct plugin_api* rb;
-
/* External bitmaps */
extern const fb_data chessbox_pieces[];
@@ -43,13 +40,13 @@ PLUGIN_HEADER
/* button definitions */
#if (CONFIG_KEYPAD == IPOD_3G_PAD) || (CONFIG_KEYPAD == IPOD_4G_PAD)
#define CB_SELECT BUTTON_SELECT
-#define CB_UP BUTTON_SCROLL_BACK
-#define CB_DOWN BUTTON_SCROLL_FWD
+#define CB_UP BUTTON_MENU
+#define CB_DOWN BUTTON_PLAY
#define CB_LEFT BUTTON_LEFT
#define CB_RIGHT BUTTON_RIGHT
-#define CB_PLAY BUTTON_PLAY
-#define CB_LEVEL BUTTON_MENU
-#define CB_QUIT BUTTON_REL
+#define CB_PLAY (BUTTON_SELECT | BUTTON_PLAY)
+#define CB_LEVEL (BUTTON_SELECT | BUTTON_RIGHT)
+#define CB_QUIT (BUTTON_SELECT | BUTTON_MENU)
#elif CONFIG_KEYPAD == IAUDIO_X5_PAD
#define CB_SELECT BUTTON_MENU