summaryrefslogtreecommitdiff
path: root/uisimulator/sdl
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/sdl')
-rw-r--r--uisimulator/sdl/UI-creativezv.bmpbin0 -> 2034506 bytes
-rw-r--r--uisimulator/sdl/UI-creativezvm60.bmp (renamed from uisimulator/sdl/UI-creativezvm.bmp)bin740790 -> 740790 bytes
-rw-r--r--uisimulator/sdl/button.c47
-rw-r--r--uisimulator/sdl/uisdl.h21
4 files changed, 66 insertions, 2 deletions
diff --git a/uisimulator/sdl/UI-creativezv.bmp b/uisimulator/sdl/UI-creativezv.bmp
new file mode 100644
index 0000000000..4d82b18da7
--- /dev/null
+++ b/uisimulator/sdl/UI-creativezv.bmp
Binary files differ
diff --git a/uisimulator/sdl/UI-creativezvm.bmp b/uisimulator/sdl/UI-creativezvm60.bmp
index d244b8d6e7..d244b8d6e7 100644
--- a/uisimulator/sdl/UI-creativezvm.bmp
+++ b/uisimulator/sdl/UI-creativezvm60.bmp
Binary files differ
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c
index 07e53ce951..76a1f2f10c 100644
--- a/uisimulator/sdl/button.c
+++ b/uisimulator/sdl/button.c
@@ -833,6 +833,53 @@ void button_event(int key, bool pressed)
833 case SDLK_ESCAPE: 833 case SDLK_ESCAPE:
834 new_btn = BUTTON_POWER; 834 new_btn = BUTTON_POWER;
835 break; 835 break;
836#elif CONFIG_KEYPAD == CREATIVEZV_PAD
837 case SDLK_KP1:
838 new_btn = BUTTON_PREV;
839 break;
840 case SDLK_KP3:
841 new_btn = BUTTON_NEXT;
842 break;
843 case SDLK_KP7:
844 new_btn = BUTTON_BACK;
845 break;
846 case SDLK_p:
847 new_btn = BUTTON_PLAY;
848 break;
849 case SDLK_KP9:
850 new_btn = BUTTON_MENU;
851 break;
852 case SDLK_KP4:
853 case SDLK_LEFT:
854 new_btn = BUTTON_LEFT;
855 break;
856 case SDLK_KP6:
857 case SDLK_RIGHT:
858 new_btn = BUTTON_RIGHT;
859 break;
860 case SDLK_KP8:
861 case SDLK_UP:
862 new_btn = BUTTON_UP;
863 break;
864 case SDLK_KP2:
865 case SDLK_DOWN:
866 new_btn = BUTTON_DOWN;
867 break;
868 case SDLK_KP5:
869 case SDLK_SPACE:
870 new_btn = BUTTON_SELECT;
871 break;
872 case SDLK_KP_MULTIPLY:
873 case SDLK_F8:
874 case SDLK_ESCAPE:
875 new_btn = BUTTON_POWER;
876 break;
877 case SDLK_z:
878 new_btn = BUTTON_VOL_DOWN;
879 break;
880 case SDLK_s:
881 new_btn = BUTTON_VOL_UP;
882 break;
836#else 883#else
837#error No keymap defined! 884#error No keymap defined!
838#endif /* CONFIG_KEYPAD */ 885#endif /* CONFIG_KEYPAD */
diff --git a/uisimulator/sdl/uisdl.h b/uisimulator/sdl/uisdl.h
index fa935c7263..abd320ad18 100644
--- a/uisimulator/sdl/uisdl.h
+++ b/uisimulator/sdl/uisdl.h
@@ -374,8 +374,12 @@
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) 377#elif defined(CREATIVE_ZVM) || defined(CREATIVE_ZVM60GB)
378#define UI_TITLE "Creative Zen Vision:M 30GB" 378#ifdef CREATIVE_ZVM
379 #define UI_TITLE "Creative Zen Vision:M 30GB"
380#else
381 #define UI_TITLE "Creative Zen Vision:M 60GB"
382#endif
379#define UI_WIDTH 383 /* width of GUI window */ 383#define UI_WIDTH 383 /* width of GUI window */
380#define UI_HEIGHT 643 /* height of GUI window */ 384#define UI_HEIGHT 643 /* height of GUI window */
381#define UI_LCD_POSX 31 /* x position of lcd */ 385#define UI_LCD_POSX 31 /* x position of lcd */
@@ -387,6 +391,19 @@
387#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ 391#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) */ 392#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
389 393
394#elif defined(CREATIVE_ZV)
395#define UI_TITLE "Creative Zen Vision"
396#define UI_WIDTH 1054 /* width of GUI window */
397#define UI_HEIGHT 643 /* height of GUI window */
398#define UI_LCD_POSX 129 /* x position of lcd */
399#define UI_LCD_POSY 85 /* y position of lcd */
400#define UI_LCD_WIDTH 640
401#define UI_LCD_HEIGHT 480
402#define UI_LCD_BGCOLOR 32, 32, 32 /* bkgnd color of LCD (no backlight) */
403#define UI_LCD_BGCOLORLIGHT 192, 192, 192 /* bkgnd color of LCD (backlight) */
404#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
405#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
406
390#endif 407#endif
391extern SDL_Surface *gui_surface; 408extern SDL_Surface *gui_surface;
392extern bool background; /* True if the background image is enabled */ 409extern bool background; /* True if the background image is enabled */