summaryrefslogtreecommitdiffstats
path: root/apps/plugins/imageviewer/imageviewer_button.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/imageviewer/imageviewer_button.h')
-rw-r--r--apps/plugins/imageviewer/imageviewer_button.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/plugins/imageviewer/imageviewer_button.h b/apps/plugins/imageviewer/imageviewer_button.h
index 4827ffa038..7695b720d3 100644
--- a/apps/plugins/imageviewer/imageviewer_button.h
+++ b/apps/plugins/imageviewer/imageviewer_button.h
@@ -428,6 +428,18 @@
#define IMGVIEW_MENU BUTTON_SELECT
#define IMGVIEW_QUIT BUTTON_POWER
+#elif CONFIG_KEYPAD == SONY_NWZ_PAD
+#define IMGVIEW_ZOOM_PRE BUTTON_POWER
+#define IMGVIEW_ZOOM_IN (BUTTON_POWER|BUTTON_REL)
+#define IMGVIEW_ZOOM_OUT (BUTTON_POWER|BUTTON_REPEAT)
+#define IMGVIEW_UP BUTTON_UP
+#define IMGVIEW_LEFT BUTTON_LEFT
+#define IMGVIEW_RIGHT BUTTON_RIGHT
+#define IMGVIEW_DOWN BUTTON_DOWN
+#define IMGVIEW_NEXT BUTTON_PLAY
+#define IMGVIEW_PREVIOUS BUTTON_BACK
+#define IMGVIEW_MENU (BUTTON_BACK|BUTTON_REPEAT)
+
#else
#error No keymap defined!
#endif