summaryrefslogtreecommitdiffstats
path: root/apps/plugins/doom/i_video.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/doom/i_video.c')
-rw-r--r--apps/plugins/doom/i_video.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/plugins/doom/i_video.c b/apps/plugins/doom/i_video.c
index 200a663494..90ee93cd17 100644
--- a/apps/plugins/doom/i_video.c
+++ b/apps/plugins/doom/i_video.c
@@ -499,6 +499,18 @@ void I_ShutdownGraphics(void)
#define DOOMBUTTON_WEAPON BUTTON_PREV
#define DOOMBUTTON_MAP BUTTON_NEXT
+#elif CONFIG_KEYPAD == SONY_NWZ_PAD
+#define DOOMBUTTON_UP BUTTON_UP
+#define DOOMBUTTON_DOWN BUTTON_DOWN
+#define DOOMBUTTON_LEFT BUTTON_LEFT
+#define DOOMBUTTON_RIGHT BUTTON_RIGHT
+#define DOOMBUTTON_OPEN BUTTON_BACK
+#define DOOMBUTTON_ESC (BUTTON_BACK|BUTTON_REPEAT)
+#define DOOMBUTTON_ENTER BUTTON_PLAY
+#define DOOMBUTTON_SHOOT BUTTON_PLAY
+#define DOOMBUTTON_WEAPON BUTTON_POWER
+#define DOOMBUTTON_MAP (BUTTON_POWER|BUTTON_REPEAT)
+
#else
#error Keymap not defined!
#endif