1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Dave Chapman 2005-11-19 02:26:54 +00:00
parent af324590cc
commit 97df7cacea
3 changed files with 7 additions and 2 deletions

View file

@ -246,6 +246,7 @@ void button_init(void)
} }
#ifdef HAVE_LCD_BITMAP /* only bitmap displays can be flipped */ #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) * 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; return newbutton;
} }
#else
/* We don't flip the iPod's keypad yet*/
#define button_flip(x) (x)
#endif
/* /*
* set the flip attribute * set the flip attribute

View file

@ -27,7 +27,7 @@
#define CONFIG_CODEC SWCODEC #define CONFIG_CODEC SWCODEC
/* Define this if you have a software controlled poweroff */ /* Define this if you have a software controlled poweroff */
#define HAVE_SW_POWEROFF //#define HAVE_SW_POWEROFF
/* The number of bytes reserved for loadable codecs */ /* The number of bytes reserved for loadable codecs */
#define CODEC_SIZE 0x80000 #define CODEC_SIZE 0x80000

View file

@ -27,7 +27,7 @@
#define CONFIG_CODEC SWCODEC #define CONFIG_CODEC SWCODEC
/* Define this if you have a software controlled poweroff */ /* Define this if you have a software controlled poweroff */
#define HAVE_SW_POWEROFF //#define HAVE_SW_POWEROFF
/* The number of bytes reserved for loadable codecs */ /* The number of bytes reserved for loadable codecs */
#define CODEC_SIZE 0x80000 #define CODEC_SIZE 0x80000