diff options
Diffstat (limited to 'apps/plugins/mp3_encoder.c')
-rw-r--r-- | apps/plugins/mp3_encoder.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/apps/plugins/mp3_encoder.c b/apps/plugins/mp3_encoder.c index 2f7a9905aa..a344bdc7dc 100644 --- a/apps/plugins/mp3_encoder.c +++ b/apps/plugins/mp3_encoder.c | |||
@@ -2333,14 +2333,26 @@ void get_mp3_filename(char *wav_name) | |||
2333 | #define MP3ENC_DONE BUTTON_RC_REC | 2333 | #define MP3ENC_DONE BUTTON_RC_REC |
2334 | #define MP3ENC_SELECT BUTTON_RC_FF | 2334 | #define MP3ENC_SELECT BUTTON_RC_FF |
2335 | #elif CONFIG_KEYPAD == COWOND2_PAD | 2335 | #elif CONFIG_KEYPAD == COWOND2_PAD |
2336 | #define MP3ENC_PREV BUTTON_UP | ||
2337 | #define MP3ENC_NEXT BUTTON_DOWN | ||
2338 | #define MP3ENC_DONE BUTTON_POWER | 2336 | #define MP3ENC_DONE BUTTON_POWER |
2339 | #define MP3ENC_SELECT BUTTON_SELECT | ||
2340 | #else | 2337 | #else |
2341 | #error No keymap defined! | 2338 | #error No keymap defined! |
2342 | #endif | 2339 | #endif |
2343 | 2340 | ||
2341 | #ifdef HAVE_TOUCHPAD | ||
2342 | #ifndef MP3ENC_PREV | ||
2343 | #define MP3ENC_PREV BUTTON_MIDLEFT | ||
2344 | #endif | ||
2345 | #ifndef MP3ENC_NEXT | ||
2346 | #define MP3ENC_NEXT BUTTON_MIDRIGHT | ||
2347 | #endif | ||
2348 | #ifndef MP3ENC_DONE | ||
2349 | #define MP3ENC_DONE BUTTON_TOPLEFT | ||
2350 | #endif | ||
2351 | #ifndef MP3ENC_SELECT | ||
2352 | #define MP3ENC_SELECT BUTTON_CENTER | ||
2353 | #endif | ||
2354 | #endif | ||
2355 | |||
2344 | enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | 2356 | enum plugin_status plugin_start(struct plugin_api* api, void* parameter) |
2345 | { | 2357 | { |
2346 | int rat, srat, nrat; /* for rate selection */ | 2358 | int rat, srat, nrat; /* for rate selection */ |