From ccf3283a6fc65edb969b8c2621906f52d4d55e81 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Tue, 10 Jan 2006 08:59:08 +0000 Subject: Add iPod button definitions for Metronome git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8321 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/SOURCES | 6 ++---- apps/plugins/metronome.c | 9 +++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) (limited to 'apps') diff --git a/apps/plugins/SOURCES b/apps/plugins/SOURCES index 3236125399..5bb84a7a0a 100644 --- a/apps/plugins/SOURCES +++ b/apps/plugins/SOURCES @@ -17,10 +17,6 @@ vbrfix.c viewer.c dict.c -#if CONFIG_KEYPAD != IPOD_4G_PAD -metronome.c -#endif - #ifdef HAVE_LCD_BITMAP /* Recorder/Ondio models only */ solitaire.c #ifndef HAVE_LCD_COLOR @@ -36,6 +32,7 @@ flipit.c grayscale.c jpeg.c mandelbrot.c +metronome.c minesweeper.c oscillograph.c oscilloscope.c @@ -91,4 +88,5 @@ wav2wv.c midi2wav.c #else splitedit.c +metronome.c #endif diff --git a/apps/plugins/metronome.c b/apps/plugins/metronome.c index bf1a1a31e1..587d9f5fe1 100644 --- a/apps/plugins/metronome.c +++ b/apps/plugins/metronome.c @@ -55,6 +55,15 @@ #define METRONOME_SYNC BUTTON_REC #define METRONOME_MSG_START "press play" #define METRONOME_MSG_STOP "press pause" + +#elif (CONFIG_KEYPAD == IPOD_4G_PAD) +#define METRONOME_QUIT BUTTON_MENU +#define METRONOME_PLAYPAUSE BUTTON_PLAY +#define METRONOME_VOL_UP BUTTON_SCROLL_FWD +#define METRONOME_VOL_DOWN BUTTON_SCROLL_BACK +#define METRONOME_TAP BUTTON_SELECT +#define METRONOME_MSG_START "press play" +#define METRONOME_MSG_STOP "press pause" #endif #if CONFIG_REMOTE_KEYPAD == H100_REMOTE -- cgit v1.2.3