1
0
Fork 0
forked from len0rd/rockbox

Enable rockboy for M5.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13084 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2007-04-09 17:47:32 +00:00
parent 61e798ff27
commit 87ac614ccd
3 changed files with 6 additions and 8 deletions

View file

@ -3,9 +3,8 @@
/* For all targets */ /* For all targets */
/* For various targets... */ /* For various targets... */
#if (CONFIG_KEYPAD == RECORDER_PAD) || \ #if (CONFIG_KEYPAD == RECORDER_PAD) || defined(HAVE_LCD_COLOR) \
(CONFIG_KEYPAD == IRIVER_H100_PAD) || \ || defined(IRIVER_H100_SERIES) || defined(IAUDIO_M5)
defined(HAVE_LCD_COLOR)
rockboy rockboy
#endif #endif

View file

@ -76,7 +76,7 @@ void ev_poll(void)
released = ~newbuttonstate & oldbuttonstate; released = ~newbuttonstate & oldbuttonstate;
pressed = newbuttonstate & ~oldbuttonstate; pressed = newbuttonstate & ~oldbuttonstate;
oldbuttonstate = newbuttonstate; oldbuttonstate = newbuttonstate;
#if CONFIG_KEYPAD == IRIVER_H100_PAD #if (LCD_WIDTH == 160) && (LCD_HEIGHT == 128) && (LCD_DEPTH == 2)
if (rb->button_hold()&~holdbutton) if (rb->button_hold()&~holdbutton)
fb.mode=(fb.mode+1)%4; fb.mode=(fb.mode+1)%4;
holdbutton=rb->button_hold(); holdbutton=rb->button_hold();
@ -161,8 +161,7 @@ void ev_poll(void)
#else #else
if(pressed & options.MENU) { if(pressed & options.MENU) {
#endif #endif
#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || \ #if (CONFIG_KEYPAD != RECORDER_PAD)
defined(HAVE_LCD_COLOR)
#ifdef HAVE_WHEEL_POSITION #ifdef HAVE_WHEEL_POSITION
rb->wheel_send_events(true); rb->wheel_send_events(true);
#endif #endif

View file

@ -15,7 +15,7 @@ text files, chip8 games), or from the \setting{Open with} option on the
\section{Games} \section{Games}
\opt{HAVE_LCD_BITMAP} \opt{HAVE_LCD_BITMAP}
{See also the Chip{}-8 emulator in \reference{ref:Chip8emulator} {See also the Chip{}-8 emulator in \reference{ref:Chip8emulator}
\opt{recorder,recorderv2fm,h1xx,h300,ipodcolor,ipodvideo,sansa} \opt{recorder,recorderv2fm,h1xx,m5,HAVE_LCD_COLOR}
{and Rockboy in \reference{ref:Rockboy}}.} {and Rockboy in \reference{ref:Rockboy}}.}
\opt{HAVE_LCD_BITMAP}{\input{plugins/blackjack.tex}} \opt{HAVE_LCD_BITMAP}{\input{plugins/blackjack.tex}}
@ -107,7 +107,7 @@ the associated file. Viewers are stored in the
\opt{recorder,recorderv2fm,ondio}{\input{plugins/rockbox_flash.tex}} \opt{recorder,recorderv2fm,ondio}{\input{plugins/rockbox_flash.tex}}
\opt{recorder,recorderv2fm,h1xx,h300,h10,h10_5gb,ipodcolor,ipodvideo,ipodnano,x5,sansa}{\input{plugins/rockboy.tex}} \opt{recorder,recorderv2fm,h1xx,m5,HAVE_LCD_COLOR}{\input{plugins/rockboy.tex}}
{\input{plugins/search.tex}} {\input{plugins/search.tex}}