diff --git a/apps/plugins/zxbox/keymaps.h b/apps/plugins/zxbox/keymaps.h index 317e67cd9f..831c6d8e69 100644 --- a/apps/plugins/zxbox/keymaps.h +++ b/apps/plugins/zxbox/keymaps.h @@ -35,7 +35,7 @@ #define ZX_DOWN BUTTON_DOWN #define ZX_LEFT BUTTON_LEFT #define ZX_RIGHT BUTTON_RIGHT -#define ZX_SELECT BUTTON_SELECT +#define ZX_SELECT BUTTON_SELECT #define ZX_MENU BUTTON_MENU #elif CONFIG_KEYPAD == IAUDIO_X5M5_PAD @@ -227,15 +227,6 @@ #define ZX_LEFT BUTTON_LEFT #define ZX_RIGHT BUTTON_RIGHT -#elif CONFIG_KEYPAD == SAMSUNG_YPR0_PAD - -#define ZX_MENU BUTTON_MENU -#define ZX_UP BUTTON_UP -#define ZX_DOWN BUTTON_DOWN -#define ZX_SELECT BUTTON_CENTER -#define ZX_LEFT BUTTON_LEFT -#define ZX_RIGHT BUTTON_RIGHT - #else #error Keymap not defined! diff --git a/apps/plugins/zxbox/zxbox_keyb.c b/apps/plugins/zxbox/zxbox_keyb.c index e8b5219de3..0d4b889a9b 100644 --- a/apps/plugins/zxbox/zxbox_keyb.c +++ b/apps/plugins/zxbox/zxbox_keyb.c @@ -223,16 +223,8 @@ #define KBD_UP BUTTON_UP #define KBD_DOWN BUTTON_DOWN -#elif CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD - -#define KBD_SELECT BUTTON_CENTER -#define KBD_ABORT BUTTON_BACK -#define KBD_LEFT BUTTON_LEFT -#define KBD_RIGHT BUTTON_RIGHT -#define KBD_UP BUTTON_UP -#define KBD_DOWN BUTTON_DOWN - -#elif CONFIG_KEYPAD == SAMSUNG_YPR0_PAD +#elif CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD || \ + CONFIG_KEYPAD == SAMSUNG_YPR0_PAD #define KBD_SELECT BUTTON_SELECT #define KBD_ABORT BUTTON_BACK