1
0
Fork 0
forked from len0rd/rockbox

Make ZVM30GB simulator work.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17513 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Maurus Cuelenaere 2008-05-14 21:14:06 +00:00
parent 67ad705cd9
commit 02883e02e2
4 changed files with 53 additions and 2 deletions

View file

@ -2426,7 +2426,7 @@ static bool dbg_isp1583(void)
} }
#endif #endif
#ifdef CREATIVE_ZVx #if defined(CREATIVE_ZVx) && !defined(SIMULATOR)
extern int pic_dbg_num_items(void); extern int pic_dbg_num_items(void);
extern char* pic_dbg_item(int selected_item, void *data, char *buffer, size_t buffer_len); extern char* pic_dbg_item(int selected_item, void *data, char *buffer, size_t buffer_len);
@ -2527,7 +2527,7 @@ static const struct the_menu_item menuitems[] = {
#if CONFIG_USBOTG == USBOTG_ISP1583 #if CONFIG_USBOTG == USBOTG_ISP1583
{ "View ISP1583 info", dbg_isp1583 }, { "View ISP1583 info", dbg_isp1583 },
#endif #endif
#ifdef CREATIVE_ZVx #if defined(CREATIVE_ZVx) && !defined(SIMULATOR)
{ "View PIC info", dbg_pic }, { "View PIC info", dbg_pic },
#endif #endif
#ifdef ROCKBOX_HAS_LOGF #ifdef ROCKBOX_HAS_LOGF

Binary file not shown.

After

Width:  |  Height:  |  Size: 723 KiB

View file

@ -795,6 +795,44 @@ void button_event(int key, bool pressed)
case SDLK_KP_ENTER: case SDLK_KP_ENTER:
new_btn = BUTTON_MENU; new_btn = BUTTON_MENU;
break; break;
#elif CONFIG_KEYPAD == CREATIVEZVM_PAD
case SDLK_KP1:
new_btn = BUTTON_BACK;
break;
case SDLK_KP3:
new_btn = BUTTON_MENU;
break;
case SDLK_KP7:
new_btn = BUTTON_CUSTOM;
break;
case SDLK_KP9:
new_btn = BUTTON_PLAY;
break;
case SDLK_KP4:
case SDLK_LEFT:
new_btn = BUTTON_LEFT;
break;
case SDLK_KP6:
case SDLK_RIGHT:
new_btn = BUTTON_RIGHT;
break;
case SDLK_KP8:
case SDLK_UP:
new_btn = BUTTON_UP;
break;
case SDLK_KP2:
case SDLK_DOWN:
new_btn = BUTTON_DOWN;
break;
case SDLK_KP5:
case SDLK_SPACE:
new_btn = BUTTON_SELECT;
break;
case SDLK_KP_MULTIPLY:
case SDLK_F8:
case SDLK_ESCAPE:
new_btn = BUTTON_POWER;
break;
#else #else
#error No keymap defined! #error No keymap defined!
#endif /* CONFIG_KEYPAD */ #endif /* CONFIG_KEYPAD */

View file

@ -374,6 +374,19 @@
#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
#elif defined(CREATIVE_ZVM)
#define UI_TITLE "Creative Zen Vision:M 30GB"
#define UI_WIDTH 383 /* width of GUI window */
#define UI_HEIGHT 643 /* height of GUI window */
#define UI_LCD_POSX 31 /* x position of lcd */
#define UI_LCD_POSY 62 /* y position of lcd */
#define UI_LCD_WIDTH 320
#define UI_LCD_HEIGHT 240
#define UI_LCD_BGCOLOR 32, 32, 32 /* bkgnd color of LCD (no backlight) */
#define UI_LCD_BGCOLORLIGHT 192, 192, 192 /* bkgnd color of LCD (backlight) */
#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
#endif #endif
extern SDL_Surface *gui_surface; extern SDL_Surface *gui_surface;
extern bool background; /* True if the background image is enabled */ extern bool background; /* True if the background image is enabled */