diff options
| author | Rob Purchase <shotofadds@rockbox.org> | 2008-04-27 15:30:19 +0000 |
|---|---|---|
| committer | Rob Purchase <shotofadds@rockbox.org> | 2008-04-27 15:30:19 +0000 |
| commit | 297e0504dad929f8990a654c4bc7a3e891ff41cb (patch) | |
| tree | 7def4b8fba3c184f82415e840e9c32780848970b /apps/plugins/chessbox | |
| parent | 6b9b508aab29a406015e93c4808d87591173a083 (diff) | |
| download | rockbox-297e0504dad929f8990a654c4bc7a3e891ff41cb.zip rockbox-297e0504dad929f8990a654c4bc7a3e891ff41cb.tar.gz rockbox-297e0504dad929f8990a654c4bc7a3e891ff41cb.tar.bz2 rockbox-297e0504dad929f8990a654c4bc7a3e891ff41cb.tar.xz | |
FS#8708: D2/m:robe500 touchscreen keymaps by Andreas Mueller.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17261 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/chessbox')
| -rw-r--r-- | apps/plugins/chessbox/chessbox_pgn.h | 56 |
1 files changed, 44 insertions, 12 deletions
diff --git a/apps/plugins/chessbox/chessbox_pgn.h b/apps/plugins/chessbox/chessbox_pgn.h index a6b647b..7a7baf6 100644 --- a/apps/plugins/chessbox/chessbox_pgn.h +++ b/apps/plugins/chessbox/chessbox_pgn.h @@ -248,25 +248,57 @@ #define CB_RC_QUIT BUTTON_REC #elif CONFIG_KEYPAD == COWOND2_PAD -#define CB_SELECT BUTTON_SELECT -#define CB_UP BUTTON_UP -#define CB_DOWN BUTTON_DOWN -#define CB_LEFT BUTTON_LEFT -#define CB_RIGHT BUTTON_RIGHT -#define CB_PLAY BUTTON_MENU #define CB_LEVEL BUTTON_PLUS -#define CB_RESTART (BUTTON_SELECT | BUTTON_MENU) -#define CB_MENU BUTTON_POWER +#define CB_RESTART BUTTON_MINUS +#define CB_MENU (BUTTON_MENU|BUTTON_REL) -#define CB_SCROLL_UP (BUTTON_UP|BUTTON_MENU) -#define CB_SCROLL_DOWN (BUTTON_DOWN|BUTTON_MENU) -#define CB_SCROLL_LEFT (BUTTON_LEFT|BUTTON_MENU) -#define CB_SCROLL_RIGHT (BUTTON_RIGHT|BUTTON_MENU) #else #error No keymap defined! #endif +#ifdef HAVE_TOUCHPAD +#ifndef CB_LEVEL +#define CB_LEVEL BUTTON_TOPLEFT +#endif +#ifndef CB_RESTART +#define CB_RESTART BUTTON_TOPRIGHT +#endif +#ifndef CB_MENU +#define CB_MENU (BUTTON_BOTTOMLEFT|BUTTON_REL) +#endif +#ifndef CB_PLAY +#define CB_PLAY (BUTTON_CENTER|BUTTON_REPEAT) +#endif +#ifndef CB_SELECT +#define CB_SELECT BUTTON_CENTER +#endif +#ifndef CB_UP +#define CB_UP BUTTON_TOPMIDDLE +#endif +#ifndef CB_DOWN +#define CB_DOWN BUTTON_BOTTOMMIDDLE +#endif +#ifndef CB_LEFT +#define CB_LEFT BUTTON_MIDLEFT +#endif +#ifndef CB_RIGHT +#define CB_RIGHT BUTTON_MIDRIGHT +#endif +#ifndef CB_SCROLL_UP +#define CB_SCROLL_UP (BUTTON_TOPMIDDLE|BUTTON_REPEAT) +#endif +#ifndef CB_SCROLL_DOWN +#define CB_SCROLL_DOWN (BUTTON_BOTTOMMIDDLE|BUTTON_REPEAT) +#endif +#ifndef CB_SCROLL_LEFT +#define CB_SCROLL_LEFT (BUTTON_MIDLEFT|BUTTON_REPEAT) +#endif +#ifndef CB_SCROLL_RIGHT +#define CB_SCROLL_RIGHT (BUTTON_MIDRIGHT|BUTTON_REPEAT) +#endif +#endif + /* structure to represent the plies */ struct pgn_ply_node { unsigned short player; |