diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2007-08-05 20:43:54 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2007-08-05 20:43:54 +0000 |
| commit | 729b25c326f942953e15e8e328c7e5eff07f9701 (patch) | |
| tree | e5cdb66da9d894d8b8c437bbf8bdddbe43f6cf1e | |
| parent | 5fee03c1287d0e6981e8da0ce05b8a6f70c53b2e (diff) | |
| download | rockbox-729b25c326f942953e15e8e328c7e5eff07f9701.zip rockbox-729b25c326f942953e15e8e328c7e5eff07f9701.tar.gz rockbox-729b25c326f942953e15e8e328c7e5eff07f9701.tar.bz2 rockbox-729b25c326f942953e15e8e328c7e5eff07f9701.tar.xz | |
Added iPod 1st/2nd gen simulator bits.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14202 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | uisimulator/sdl/UI-ipod1g2g.bmp | bin | 0 -> 86644 bytes | |||
| -rw-r--r-- | uisimulator/sdl/button.c | 3 | ||||
| -rw-r--r-- | uisimulator/sdl/uisdl.h | 12 |
3 files changed, 14 insertions, 1 deletions
diff --git a/uisimulator/sdl/UI-ipod1g2g.bmp b/uisimulator/sdl/UI-ipod1g2g.bmp Binary files differnew file mode 100644 index 0000000..5447342 --- /dev/null +++ b/uisimulator/sdl/UI-ipod1g2g.bmp diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c index bfe81af..38ef435 100644 --- a/uisimulator/sdl/button.c +++ b/uisimulator/sdl/button.c @@ -213,7 +213,8 @@ void button_event(int key, bool pressed) new_btn = BUTTON_SELECT; break; -#elif (CONFIG_KEYPAD == IPOD_3G_PAD) || (CONFIG_KEYPAD == IPOD_4G_PAD) +#elif (CONFIG_KEYPAD == IPOD_1G2G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD) \ + || (CONFIG_KEYPAD == IPOD_4G_PAD) case SDLK_KP4: case SDLK_LEFT: new_btn = BUTTON_LEFT; diff --git a/uisimulator/sdl/uisdl.h b/uisimulator/sdl/uisdl.h index 93305b0..38bfdce 100644 --- a/uisimulator/sdl/uisdl.h +++ b/uisimulator/sdl/uisdl.h @@ -107,6 +107,18 @@ #define UI_REMOTE_WIDTH 128 #define UI_REMOTE_HEIGHT 64 +#elif defined(IPOD_1G2G) +#define UI_TITLE "iPod 1G/2G" +#define UI_WIDTH 224 /* width of GUI window */ +#define UI_HEIGHT 382 /* height of GUI window */ +#define UI_LCD_BGCOLOR 100, 135, 100 /* bkgnd color of LCD (no backlight) */ +#define UI_LCD_BGCOLORLIGHT 223, 216, 255 /* bkgnd color of LCD (backlight) */ +#define UI_LCD_BLACK 0, 0, 0 /* black */ +#define UI_LCD_POSX 32 /* x position of lcd */ +#define UI_LCD_POSY 12 /* y position of lcd */ +#define UI_LCD_WIDTH 160 +#define UI_LCD_HEIGHT 128 + #elif defined(IPOD_3G) #define UI_TITLE "iPod 3G" #define UI_WIDTH 218 /* width of GUI window */ |