summaryrefslogtreecommitdiff
path: root/uisimulator
diff options
context:
space:
mode:
authorVitja Makarov <vitja.makarov@gmail.com>2008-10-22 11:58:49 +0000
committerVitja Makarov <vitja.makarov@gmail.com>2008-10-22 11:58:49 +0000
commit9004289a147460c3d2542a5f4a90c412bba30c8b (patch)
treef4c7db295c87035914827ec5fb657daf6d9d610b /uisimulator
parent7b77910de415d6156e9c4ab95f707a0b71020f30 (diff)
downloadrockbox-9004289a147460c3d2542a5f4a90c412bba30c8b.tar.gz
rockbox-9004289a147460c3d2542a5f4a90c412bba30c8b.zip
iaudio7: simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18861 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/sdl/UI-iaudio7.bmpbin0 -> 422918 bytes
-rw-r--r--uisimulator/sdl/button.c28
-rw-r--r--uisimulator/sdl/uisdl.h13
3 files changed, 40 insertions, 1 deletions
diff --git a/uisimulator/sdl/UI-iaudio7.bmp b/uisimulator/sdl/UI-iaudio7.bmp
new file mode 100644
index 0000000000..c349477747
--- /dev/null
+++ b/uisimulator/sdl/UI-iaudio7.bmp
Binary files differ
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c
index 47ecb2b368..2a06f2e435 100644
--- a/uisimulator/sdl/button.c
+++ b/uisimulator/sdl/button.c
@@ -810,7 +810,33 @@ void button_event(int key, bool pressed)
810 case SDLK_KP_ENTER: 810 case SDLK_KP_ENTER:
811 new_btn = BUTTON_MENU; 811 new_btn = BUTTON_MENU;
812 break; 812 break;
813 813#elif CONFIG_KEYPAD == IAUDIO67_PAD
814 case SDLK_UP:
815 new_btn = BUTTON_RIGHT;
816 break;
817 case SDLK_DOWN:
818 new_btn = BUTTON_LEFT;
819 break;
820 case SDLK_LEFT:
821 new_btn = BUTTON_STOP;
822 break;
823 case SDLK_RETURN:
824 case SDLK_KP_ENTER:
825 case SDLK_RIGHT:
826 new_btn = BUTTON_PLAY;
827 break;
828 case SDLK_PLUS:
829 new_btn = BUTTON_VOLUP;
830 break;
831 case SDLK_MINUS:
832 new_btn = BUTTON_VOLDOWN;
833 break;
834 case SDLK_SPACE:
835 new_btn = BUTTON_MENU;
836 break;
837 case SDLK_BACKSPACE:
838 new_btn = BUTTON_POWER;
839 break;
814#elif CONFIG_KEYPAD == CREATIVEZVM_PAD 840#elif CONFIG_KEYPAD == CREATIVEZVM_PAD
815 case SDLK_KP1: 841 case SDLK_KP1:
816 new_btn = BUTTON_BACK; 842 new_btn = BUTTON_BACK;
diff --git a/uisimulator/sdl/uisdl.h b/uisimulator/sdl/uisdl.h
index 625258a86f..88271eb81e 100644
--- a/uisimulator/sdl/uisdl.h
+++ b/uisimulator/sdl/uisdl.h
@@ -376,6 +376,19 @@
376#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ 376#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
377#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ 377#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
378 378
379#elif defined(IAUDIO_7)
380#define UI_TITLE "iAudio7"
381#define UI_WIDTH 494 /* width of GUI window */
382#define UI_HEIGHT 214 /* height of GUI window */
383#define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
384#define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */
385#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
386#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
387#define UI_LCD_POSX 131 /* x position of lcd */
388#define UI_LCD_POSY 38 /* y position of lcd */
389#define UI_LCD_WIDTH 160
390#define UI_LCD_HEIGHT 128
391
379#elif defined(CREATIVE_ZVM) || defined(CREATIVE_ZVM60GB) 392#elif defined(CREATIVE_ZVM) || defined(CREATIVE_ZVM60GB)
380#ifdef CREATIVE_ZVM 393#ifdef CREATIVE_ZVM
381 #define UI_TITLE "Creative Zen Vision:M 30GB" 394 #define UI_TITLE "Creative Zen Vision:M 30GB"