summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-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 7023e8f87c..473ce49f8c 100644
--- a/apps/plugins/doom/i_video.c
+++ b/apps/plugins/doom/i_video.c
@@ -403,6 +403,16 @@ void I_ShutdownGraphics(void)
403#define DOOMBUTTON_ESC BUTTON_REC 403#define DOOMBUTTON_ESC BUTTON_REC
404#define DOOMBUTTON_ENTER BUTTON_PLAY 404#define DOOMBUTTON_ENTER BUTTON_PLAY
405#define DOOMBUTTON_WEAPON (BUTTON_PLAY|BUTTON_REPEAT) 405#define DOOMBUTTON_WEAPON (BUTTON_PLAY|BUTTON_REPEAT)
406#elif CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD
407#define DOOMBUTTON_UP BUTTON_UP
408#define DOOMBUTTON_DOWN BUTTON_DOWN
409#define DOOMBUTTON_LEFT BUTTON_LEFT
410#define DOOMBUTTON_RIGHT BUTTON_RIGHT
411#define DOOMBUTTON_SHOOT BUTTON_SELECT
412#define DOOMBUTTON_OPEN BUTTON_PLAYPAUSE
413#define DOOMBUTTON_ESC BUTTON_BACK
414#define DOOMBUTTON_ENTER (BUTTON_PLAYPAUSE|BUTTON_REPEAT)
415#define DOOMBUTTON_WEAPON (BUTTON_SELECT|BUTTON_REPEAT)
406 416
407#else 417#else
408#error Keymap not defined! 418#error Keymap not defined!
diff --git a/apps/plugins/pacbox/pacbox.h b/apps/plugins/pacbox/pacbox.h
index 99d9e2ffee..d9b8ec7460 100644
--- a/apps/plugins/pacbox/pacbox.h
+++ b/apps/plugins/pacbox/pacbox.h
@@ -243,6 +243,17 @@
243#define PACMAN_COIN BUTTON_OK 243#define PACMAN_COIN BUTTON_OK
244#define PACMAN_MENU BUTTON_MENU 244#define PACMAN_MENU BUTTON_MENU
245 245
246#elif CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD
247
248#define PACMAN_UP BUTTON_UP
249#define PACMAN_DOWN BUTTON_DOWN
250#define PACMAN_LEFT BUTTON_LEFT
251#define PACMAN_RIGHT BUTTON_RIGHT
252#define PACMAN_1UP BUTTON_SELECT
253#define PACMAN_2UP BUTTON_BACK
254#define PACMAN_COIN BUTTON_PLAYPAUSE
255#define PACMAN_MENU BUTTON_POWER
256
246#else 257#else
247 258
248#error Keymap not defined! 259#error Keymap not defined!