diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-10-03 18:17:11 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-10-09 12:41:18 -0400 |
commit | aabc8aca47e60cf745a34af28c50679fcb967910 (patch) | |
tree | cfe17f546aae9785fb13482f39527e2da0597ccb /apps/plugins/mpegplayer | |
parent | 4231c2c83f2b5331e3e38b10a308ee3752315f9c (diff) | |
download | rockbox-aabc8aca47e60cf745a34af28c50679fcb967910.tar.gz rockbox-aabc8aca47e60cf745a34af28c50679fcb967910.zip |
New port: FiiO M3K
Most credit goes to: Roman Skylarov
Additional integration and refactoring by myself.
*** COMPLETELY UNTESTED ***
Change-Id: Ia64c36d92e0214c6b15f7a868df286f8113ea27b
Diffstat (limited to 'apps/plugins/mpegplayer')
-rw-r--r-- | apps/plugins/mpegplayer/mpeg_settings.c | 10 | ||||
-rw-r--r-- | apps/plugins/mpegplayer/mpegplayer.c | 9 |
2 files changed, 19 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/mpeg_settings.c b/apps/plugins/mpegplayer/mpeg_settings.c index 25eb313591..43143bdaee 100644 --- a/apps/plugins/mpegplayer/mpeg_settings.c +++ b/apps/plugins/mpegplayer/mpeg_settings.c | |||
@@ -336,6 +336,16 @@ struct mpeg_settings settings; | |||
336 | #define MPEG_START_TIME_RIGHT2 BUTTON_VOL_DOWN | 336 | #define MPEG_START_TIME_RIGHT2 BUTTON_VOL_DOWN |
337 | #define MPEG_START_TIME_EXIT BUTTON_POWER | 337 | #define MPEG_START_TIME_EXIT BUTTON_POWER |
338 | 338 | ||
339 | #elif CONFIG_KEYPAD == FIIO_M3K_PAD | ||
340 | #define MPEG_START_TIME_SELECT BUTTON_PLAY | ||
341 | #define MPEG_START_TIME_LEFT BUTTON_PREV | ||
342 | #define MPEG_START_TIME_RIGHT BUTTON_NEXT | ||
343 | #define MPEG_START_TIME_UP BUTTON_HOME | ||
344 | #define MPEG_START_TIME_DOWN BUTTON_OPTION | ||
345 | #define MPEG_START_TIME_LEFT2 BUTTON_VOL_UP | ||
346 | #define MPEG_START_TIME_RIGHT2 BUTTON_VOL_DOWN | ||
347 | #define MPEG_START_TIME_EXIT BUTTON_POWER | ||
348 | |||
339 | #elif CONFIG_KEYPAD == IHIFI_770_PAD | 349 | #elif CONFIG_KEYPAD == IHIFI_770_PAD |
340 | #define MPEG_START_TIME_SELECT BUTTON_PLAY | 350 | #define MPEG_START_TIME_SELECT BUTTON_PLAY |
341 | #define MPEG_START_TIME_LEFT BUTTON_HOME | 351 | #define MPEG_START_TIME_LEFT BUTTON_HOME |
diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c index 5c06fe257d..8028913c94 100644 --- a/apps/plugins/mpegplayer/mpegplayer.c +++ b/apps/plugins/mpegplayer/mpegplayer.c | |||
@@ -468,6 +468,15 @@ CONFIG_KEYPAD == SANSA_M200_PAD | |||
468 | #define MPEG_RW BUTTON_PREV | 468 | #define MPEG_RW BUTTON_PREV |
469 | #define MPEG_FF BUTTON_NEXT | 469 | #define MPEG_FF BUTTON_NEXT |
470 | 470 | ||
471 | #elif CONFIG_KEYPAD == FIIO_M3K_PAD | ||
472 | #define MPEG_MENU BUTTON_PLAY | ||
473 | #define MPEG_STOP BUTTON_POWER | ||
474 | #define MPEG_PAUSE BUTTON_HOME | ||
475 | #define MPEG_VOLDOWN BUTTON_VOL_DOWN | ||
476 | #define MPEG_VOLUP BUTTON_VOL_UP | ||
477 | #define MPEG_RW BUTTON_PREV | ||
478 | #define MPEG_FF BUTTON_NEXT | ||
479 | |||
471 | #elif CONFIG_KEYPAD == IHIFI_770_PAD | 480 | #elif CONFIG_KEYPAD == IHIFI_770_PAD |
472 | #define MPEG_MENU BUTTON_PLAY | 481 | #define MPEG_MENU BUTTON_PLAY |
473 | #define MPEG_STOP BUTTON_POWER | 482 | #define MPEG_STOP BUTTON_POWER |