From 97df7caceaa3f94801f1b5b5eb358ac6527db11a Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Sat, 19 Nov 2005 02:26:54 +0000 Subject: Fix button problems - disable button_flip for the iPod and disable software poweroff git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7981 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/button.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'firmware/drivers') diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 56bfaed..85faeaf 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c @@ -246,6 +246,7 @@ void button_init(void) } #ifdef HAVE_LCD_BITMAP /* only bitmap displays can be flipped */ +#if (CONFIG_KEYPAD != IPOD_4G_PAD) && (CONFIG_KEYPAD != IPOD_4G_PAD) /* * helper function to swap UP/DOWN, LEFT/RIGHT (and F1/F3 for Recorder) */ @@ -278,6 +279,10 @@ static int button_flip(int button) return newbutton; } +#else +/* We don't flip the iPod's keypad yet*/ +#define button_flip(x) (x) +#endif /* * set the flip attribute -- cgit v1.1