summaryrefslogtreecommitdiffstats
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.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/plugins/chessbox/chessbox_pgn.h b/apps/plugins/chessbox/chessbox_pgn.h
index 3cc136e566..1e8a9ec34f 100644
--- a/apps/plugins/chessbox/chessbox_pgn.h
+++ b/apps/plugins/chessbox/chessbox_pgn.h
@@ -464,6 +464,17 @@
#define CB_LEVEL BUTTON_PREV
#define CB_MENU BUTTON_POWER
+
+#elif CONFIG_KEYPAD == SONY_NWZ_PAD
+#define CB_SELECT BUTTON_PLAY
+#define CB_UP BUTTON_UP
+#define CB_DOWN BUTTON_DOWN
+#define CB_LEFT BUTTON_LEFT
+#define CB_RIGHT BUTTON_RIGHT
+#define CB_PLAY (BUTTON_REPEAT|BUTTON_PLAY)
+#define CB_MENU BUTTON_BACK
+#define CB_LEVEL BUTTON_POWER
+
#else
#error No keymap defined!
#endif