summaryrefslogtreecommitdiffstats
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.tar.bz2
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)
case SDLK_KP_ENTER:
new_btn = BUTTON_MENU;
break;
-
+#elif CONFIG_KEYPAD == IAUDIO67_PAD
+ case SDLK_UP:
+ new_btn = BUTTON_RIGHT;
+ break;
+ case SDLK_DOWN:
+ new_btn = BUTTON_LEFT;
+ break;
+ case SDLK_LEFT:
+ new_btn = BUTTON_STOP;
+ break;
+ case SDLK_RETURN:
+ case SDLK_KP_ENTER:
+ case SDLK_RIGHT:
+ new_btn = BUTTON_PLAY;
+ break;
+ case SDLK_PLUS:
+ new_btn = BUTTON_VOLUP;
+ break;
+ case SDLK_MINUS:
+ new_btn = BUTTON_VOLDOWN;
+ break;
+ case SDLK_SPACE:
+ new_btn = BUTTON_MENU;
+ break;
+ case SDLK_BACKSPACE:
+ new_btn = BUTTON_POWER;
+ break;
#elif CONFIG_KEYPAD == CREATIVEZVM_PAD
case SDLK_KP1:
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 @@
#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) */
+#elif defined(IAUDIO_7)
+#define UI_TITLE "iAudio7"
+#define UI_WIDTH 494 /* width of GUI window */
+#define UI_HEIGHT 214 /* height of GUI window */
+#define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
+#define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* 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) */
+#define UI_LCD_POSX 131 /* x position of lcd */
+#define UI_LCD_POSY 38 /* y position of lcd */
+#define UI_LCD_WIDTH 160
+#define UI_LCD_HEIGHT 128
+
#elif defined(CREATIVE_ZVM) || defined(CREATIVE_ZVM60GB)
#ifdef CREATIVE_ZVM
#define UI_TITLE "Creative Zen Vision:M 30GB"