summaryrefslogtreecommitdiffstats
path: root/apps/plugins/calculator.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/calculator.c')
-rw-r--r--apps/plugins/calculator.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/plugins/calculator.c b/apps/plugins/calculator.c
index 327ef69b45..5e5e7130a1 100644
--- a/apps/plugins/calculator.c
+++ b/apps/plugins/calculator.c
@@ -477,6 +477,16 @@ F3: equal to "="
#define CALCULATOR_CALC BUTTON_PLAY
#define CALCULATOR_CLEAR BUTTON_PREV
+#elif CONFIG_KEYPAD == SONY_NWZ_PAD
+#define CALCULATOR_LEFT BUTTON_LEFT
+#define CALCULATOR_RIGHT BUTTON_RIGHT
+#define CALCULATOR_UP BUTTON_UP
+#define CALCULATOR_DOWN BUTTON_DOWN
+#define CALCULATOR_QUIT (BUTTON_BACK|BUTTON_REPEAT)
+#define CALCULATOR_INPUT BUTTON_PLAY
+#define CALCULATOR_CALC BUTTON_POWER
+#define CALCULATOR_CLEAR BUTTON_BACK
+
#else
#error No keymap defined!
#endif