summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/doom/i_video.c10
-rw-r--r--apps/plugins/pacbox/pacbox.h11
2 files changed, 21 insertions, 0 deletions
diff --git a/apps/plugins/doom/i_video.c b/apps/plugins/doom/i_video.c
index 7023e8f..473ce49 100644
--- a/apps/plugins/doom/i_video.c
+++ b/apps/plugins/doom/i_video.c
@@ -403,6 +403,16 @@ void I_ShutdownGraphics(void)
#define DOOMBUTTON_ESC BUTTON_REC
#define DOOMBUTTON_ENTER BUTTON_PLAY
#define DOOMBUTTON_WEAPON (BUTTON_PLAY|BUTTON_REPEAT)
+#elif CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD
+#define DOOMBUTTON_UP BUTTON_UP
+#define DOOMBUTTON_DOWN BUTTON_DOWN
+#define DOOMBUTTON_LEFT BUTTON_LEFT
+#define DOOMBUTTON_RIGHT BUTTON_RIGHT
+#define DOOMBUTTON_SHOOT BUTTON_SELECT
+#define DOOMBUTTON_OPEN BUTTON_PLAYPAUSE
+#define DOOMBUTTON_ESC BUTTON_BACK
+#define DOOMBUTTON_ENTER (BUTTON_PLAYPAUSE|BUTTON_REPEAT)
+#define DOOMBUTTON_WEAPON (BUTTON_SELECT|BUTTON_REPEAT)
#else
#error Keymap not defined!
diff --git a/apps/plugins/pacbox/pacbox.h b/apps/plugins/pacbox/pacbox.h
index 99d9e2f..d9b8ec7 100644
--- a/apps/plugins/pacbox/pacbox.h
+++ b/apps/plugins/pacbox/pacbox.h
@@ -243,6 +243,17 @@
#define PACMAN_COIN BUTTON_OK
#define PACMAN_MENU BUTTON_MENU
+#elif CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD
+
+#define PACMAN_UP BUTTON_UP
+#define PACMAN_DOWN BUTTON_DOWN
+#define PACMAN_LEFT BUTTON_LEFT
+#define PACMAN_RIGHT BUTTON_RIGHT
+#define PACMAN_1UP BUTTON_SELECT
+#define PACMAN_2UP BUTTON_BACK
+#define PACMAN_COIN BUTTON_PLAYPAUSE
+#define PACMAN_MENU BUTTON_POWER
+
#else
#error Keymap not defined!