From 0486e5b93e422d0bd240439f02a8509a6c5bcbc5 Mon Sep 17 00:00:00 2001 From: Sebastian Leonhardt Date: Thu, 22 Feb 2018 23:42:29 +0100 Subject: Zen XFi2: Enable Plugins Keymaps aren't tested, there may be room for improvement. Change-Id: I6b8fe697899b241ea6e96f4fe446d88671ad7818 --- apps/plugins/mpegplayer/mpeg_settings.c | 3 +++ apps/plugins/mpegplayer/mpegplayer.c | 5 +++++ 2 files changed, 8 insertions(+) (limited to 'apps/plugins/mpegplayer') diff --git a/apps/plugins/mpegplayer/mpeg_settings.c b/apps/plugins/mpegplayer/mpeg_settings.c index f15269689a..d6b926b585 100644 --- a/apps/plugins/mpegplayer/mpeg_settings.c +++ b/apps/plugins/mpegplayer/mpeg_settings.c @@ -295,6 +295,9 @@ struct mpeg_settings settings; #define MPEG_START_TIME_UP BUTTON_VOL_UP #define MPEG_START_TIME_DOWN BUTTON_VOL_DOWN +#elif CONFIG_KEYPAD == CREATIVE_ZENXFI2_PAD +#define MPEG_START_TIME_EXIT BUTTON_POWER + #else #error No keymap defined! #endif diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c index 37a8456d55..056b46c7a1 100644 --- a/apps/plugins/mpegplayer/mpegplayer.c +++ b/apps/plugins/mpegplayer/mpegplayer.c @@ -427,6 +427,11 @@ CONFIG_KEYPAD == SANSA_M200_PAD #define MPEG_PAUSE BUTTON_PLAY #define MPEG_STOP (BUTTON_PLAY|BUTTON_REPEAT) +#elif CONFIG_KEYPAD == CREATIVE_ZENXFI2_PAD +#define MPEG_MENU BUTTON_POWER +#define MPEG_PAUSE BUTTON_MENU +#define MPEG_STOP (BUTTON_MENU|BUTTON_REPEAT) + #else #error No keymap defined! #endif -- cgit v1.2.3