summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/debug_menu.c4
-rw-r--r--uisimulator/sdl/UI-creativezvm.bmpbin0 -> 740790 bytes
-rw-r--r--uisimulator/sdl/button.c38
-rw-r--r--uisimulator/sdl/uisdl.h13
4 files changed, 53 insertions, 2 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 740860865f..e198bfa18d 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -2426,7 +2426,7 @@ static bool dbg_isp1583(void)
2426} 2426}
2427#endif 2427#endif
2428 2428
2429#ifdef CREATIVE_ZVx 2429#if defined(CREATIVE_ZVx) && !defined(SIMULATOR)
2430extern int pic_dbg_num_items(void); 2430extern int pic_dbg_num_items(void);
2431extern char* pic_dbg_item(int selected_item, void *data, char *buffer, size_t buffer_len); 2431extern char* pic_dbg_item(int selected_item, void *data, char *buffer, size_t buffer_len);
2432 2432
@@ -2527,7 +2527,7 @@ static const struct the_menu_item menuitems[] = {
2527#if CONFIG_USBOTG == USBOTG_ISP1583 2527#if CONFIG_USBOTG == USBOTG_ISP1583
2528 { "View ISP1583 info", dbg_isp1583 }, 2528 { "View ISP1583 info", dbg_isp1583 },
2529#endif 2529#endif
2530#ifdef CREATIVE_ZVx 2530#if defined(CREATIVE_ZVx) && !defined(SIMULATOR)
2531 { "View PIC info", dbg_pic }, 2531 { "View PIC info", dbg_pic },
2532#endif 2532#endif
2533#ifdef ROCKBOX_HAS_LOGF 2533#ifdef ROCKBOX_HAS_LOGF
diff --git a/uisimulator/sdl/UI-creativezvm.bmp b/uisimulator/sdl/UI-creativezvm.bmp
new file mode 100644
index 0000000000..d244b8d6e7
--- /dev/null
+++ b/uisimulator/sdl/UI-creativezvm.bmp
Binary files differ
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c
index 6672a4164e..07e53ce951 100644
--- a/uisimulator/sdl/button.c
+++ b/uisimulator/sdl/button.c
@@ -795,6 +795,44 @@ void button_event(int key, bool pressed)
795 case SDLK_KP_ENTER: 795 case SDLK_KP_ENTER:
796 new_btn = BUTTON_MENU; 796 new_btn = BUTTON_MENU;
797 break; 797 break;
798#elif CONFIG_KEYPAD == CREATIVEZVM_PAD
799 case SDLK_KP1:
800 new_btn = BUTTON_BACK;
801 break;
802 case SDLK_KP3:
803 new_btn = BUTTON_MENU;
804 break;
805 case SDLK_KP7:
806 new_btn = BUTTON_CUSTOM;
807 break;
808 case SDLK_KP9:
809 new_btn = BUTTON_PLAY;
810 break;
811 case SDLK_KP4:
812 case SDLK_LEFT:
813 new_btn = BUTTON_LEFT;
814 break;
815 case SDLK_KP6:
816 case SDLK_RIGHT:
817 new_btn = BUTTON_RIGHT;
818 break;
819 case SDLK_KP8:
820 case SDLK_UP:
821 new_btn = BUTTON_UP;
822 break;
823 case SDLK_KP2:
824 case SDLK_DOWN:
825 new_btn = BUTTON_DOWN;
826 break;
827 case SDLK_KP5:
828 case SDLK_SPACE:
829 new_btn = BUTTON_SELECT;
830 break;
831 case SDLK_KP_MULTIPLY:
832 case SDLK_F8:
833 case SDLK_ESCAPE:
834 new_btn = BUTTON_POWER;
835 break;
798#else 836#else
799#error No keymap defined! 837#error No keymap defined!
800#endif /* CONFIG_KEYPAD */ 838#endif /* CONFIG_KEYPAD */
diff --git a/uisimulator/sdl/uisdl.h b/uisimulator/sdl/uisdl.h
index 37989a682b..fa935c7263 100644
--- a/uisimulator/sdl/uisdl.h
+++ b/uisimulator/sdl/uisdl.h
@@ -374,6 +374,19 @@
374#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ 374#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
375#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ 375#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
376 376
377#elif defined(CREATIVE_ZVM)
378#define UI_TITLE "Creative Zen Vision:M 30GB"
379#define UI_WIDTH 383 /* width of GUI window */
380#define UI_HEIGHT 643 /* height of GUI window */
381#define UI_LCD_POSX 31 /* x position of lcd */
382#define UI_LCD_POSY 62 /* y position of lcd */
383#define UI_LCD_WIDTH 320
384#define UI_LCD_HEIGHT 240
385#define UI_LCD_BGCOLOR 32, 32, 32 /* bkgnd color of LCD (no backlight) */
386#define UI_LCD_BGCOLORLIGHT 192, 192, 192 /* bkgnd color of LCD (backlight) */
387#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
388#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
389
377#endif 390#endif
378extern SDL_Surface *gui_surface; 391extern SDL_Surface *gui_surface;
379extern bool background; /* True if the background image is enabled */ 392extern bool background; /* True if the background image is enabled */