summaryrefslogtreecommitdiffstats
path: root/apps/plugins/text_viewer/tv_button.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/text_viewer/tv_button.h')
-rw-r--r--apps/plugins/text_viewer/tv_button.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/plugins/text_viewer/tv_button.h b/apps/plugins/text_viewer/tv_button.h
index b63f8780ea..b1660c0840 100644
--- a/apps/plugins/text_viewer/tv_button.h
+++ b/apps/plugins/text_viewer/tv_button.h
@@ -486,6 +486,16 @@
#define TV_AUTOSCROLL BUTTON_NEXT
#define TV_BOOKMARK BUTTON_SELECT
+#elif CONFIG_KEYPAD == SONY_NWZ_PAD
+#define TV_QUIT (BUTTON_BACK|BUTTON_REPEAT)
+#define TV_SCROLL_UP BUTTON_UP
+#define TV_SCROLL_DOWN BUTTON_DOWN
+#define TV_SCREEN_LEFT BUTTON_LEFT
+#define TV_SCREEN_RIGHT BUTTON_RIGHT
+#define TV_MENU BUTTON_BACK
+#define TV_AUTOSCROLL BUTTON_PLAY
+#define TV_BOOKMARK BUTTON_POWER
+
#else
#error No keymap defined!
#endif