summaryrefslogtreecommitdiff
path: root/apps/plugins/chessbox/chessbox_pgn.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/chessbox/chessbox_pgn.h')
-rw-r--r--apps/plugins/chessbox/chessbox_pgn.h56
1 files changed, 44 insertions, 12 deletions
diff --git a/apps/plugins/chessbox/chessbox_pgn.h b/apps/plugins/chessbox/chessbox_pgn.h
index a6b647b034..7a7baf6ad8 100644
--- a/apps/plugins/chessbox/chessbox_pgn.h
+++ b/apps/plugins/chessbox/chessbox_pgn.h
@@ -248,25 +248,57 @@
248#define CB_RC_QUIT BUTTON_REC 248#define CB_RC_QUIT BUTTON_REC
249 249
250#elif CONFIG_KEYPAD == COWOND2_PAD 250#elif CONFIG_KEYPAD == COWOND2_PAD
251#define CB_SELECT BUTTON_SELECT
252#define CB_UP BUTTON_UP
253#define CB_DOWN BUTTON_DOWN
254#define CB_LEFT BUTTON_LEFT
255#define CB_RIGHT BUTTON_RIGHT
256#define CB_PLAY BUTTON_MENU
257#define CB_LEVEL BUTTON_PLUS 251#define CB_LEVEL BUTTON_PLUS
258#define CB_RESTART (BUTTON_SELECT | BUTTON_MENU) 252#define CB_RESTART BUTTON_MINUS
259#define CB_MENU BUTTON_POWER 253#define CB_MENU (BUTTON_MENU|BUTTON_REL)
260 254
261#define CB_SCROLL_UP (BUTTON_UP|BUTTON_MENU)
262#define CB_SCROLL_DOWN (BUTTON_DOWN|BUTTON_MENU)
263#define CB_SCROLL_LEFT (BUTTON_LEFT|BUTTON_MENU)
264#define CB_SCROLL_RIGHT (BUTTON_RIGHT|BUTTON_MENU)
265 255
266#else 256#else
267#error No keymap defined! 257#error No keymap defined!
268#endif 258#endif
269 259
260#ifdef HAVE_TOUCHPAD
261#ifndef CB_LEVEL
262#define CB_LEVEL BUTTON_TOPLEFT
263#endif
264#ifndef CB_RESTART
265#define CB_RESTART BUTTON_TOPRIGHT
266#endif
267#ifndef CB_MENU
268#define CB_MENU (BUTTON_BOTTOMLEFT|BUTTON_REL)
269#endif
270#ifndef CB_PLAY
271#define CB_PLAY (BUTTON_CENTER|BUTTON_REPEAT)
272#endif
273#ifndef CB_SELECT
274#define CB_SELECT BUTTON_CENTER
275#endif
276#ifndef CB_UP
277#define CB_UP BUTTON_TOPMIDDLE
278#endif
279#ifndef CB_DOWN
280#define CB_DOWN BUTTON_BOTTOMMIDDLE
281#endif
282#ifndef CB_LEFT
283#define CB_LEFT BUTTON_MIDLEFT
284#endif
285#ifndef CB_RIGHT
286#define CB_RIGHT BUTTON_MIDRIGHT
287#endif
288#ifndef CB_SCROLL_UP
289#define CB_SCROLL_UP (BUTTON_TOPMIDDLE|BUTTON_REPEAT)
290#endif
291#ifndef CB_SCROLL_DOWN
292#define CB_SCROLL_DOWN (BUTTON_BOTTOMMIDDLE|BUTTON_REPEAT)
293#endif
294#ifndef CB_SCROLL_LEFT
295#define CB_SCROLL_LEFT (BUTTON_MIDLEFT|BUTTON_REPEAT)
296#endif
297#ifndef CB_SCROLL_RIGHT
298#define CB_SCROLL_RIGHT (BUTTON_MIDRIGHT|BUTTON_REPEAT)
299#endif
300#endif
301
270/* structure to represent the plies */ 302/* structure to represent the plies */
271struct pgn_ply_node { 303struct pgn_ply_node {
272 unsigned short player; 304 unsigned short player;