summaryrefslogtreecommitdiff
path: root/uisimulator
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/sdl/UI-ipod1g2g.bmpbin0 -> 86644 bytes
-rw-r--r--uisimulator/sdl/button.c3
-rw-r--r--uisimulator/sdl/uisdl.h12
3 files changed, 14 insertions, 1 deletions
diff --git a/uisimulator/sdl/UI-ipod1g2g.bmp b/uisimulator/sdl/UI-ipod1g2g.bmp
new file mode 100644
index 0000000000..54473422e1
--- /dev/null
+++ b/uisimulator/sdl/UI-ipod1g2g.bmp
Binary files differ
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c
index bfe81af111..38ef435ebb 100644
--- a/uisimulator/sdl/button.c
+++ b/uisimulator/sdl/button.c
@@ -213,7 +213,8 @@ void button_event(int key, bool pressed)
213 new_btn = BUTTON_SELECT; 213 new_btn = BUTTON_SELECT;
214 break; 214 break;
215 215
216#elif (CONFIG_KEYPAD == IPOD_3G_PAD) || (CONFIG_KEYPAD == IPOD_4G_PAD) 216#elif (CONFIG_KEYPAD == IPOD_1G2G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD) \
217 || (CONFIG_KEYPAD == IPOD_4G_PAD)
217 case SDLK_KP4: 218 case SDLK_KP4:
218 case SDLK_LEFT: 219 case SDLK_LEFT:
219 new_btn = BUTTON_LEFT; 220 new_btn = BUTTON_LEFT;
diff --git a/uisimulator/sdl/uisdl.h b/uisimulator/sdl/uisdl.h
index 93305b0a7c..38bfdce429 100644
--- a/uisimulator/sdl/uisdl.h
+++ b/uisimulator/sdl/uisdl.h
@@ -107,6 +107,18 @@
107#define UI_REMOTE_WIDTH 128 107#define UI_REMOTE_WIDTH 128
108#define UI_REMOTE_HEIGHT 64 108#define UI_REMOTE_HEIGHT 64
109 109
110#elif defined(IPOD_1G2G)
111#define UI_TITLE "iPod 1G/2G"
112#define UI_WIDTH 224 /* width of GUI window */
113#define UI_HEIGHT 382 /* height of GUI window */
114#define UI_LCD_BGCOLOR 100, 135, 100 /* bkgnd color of LCD (no backlight) */
115#define UI_LCD_BGCOLORLIGHT 223, 216, 255 /* bkgnd color of LCD (backlight) */
116#define UI_LCD_BLACK 0, 0, 0 /* black */
117#define UI_LCD_POSX 32 /* x position of lcd */
118#define UI_LCD_POSY 12 /* y position of lcd */
119#define UI_LCD_WIDTH 160
120#define UI_LCD_HEIGHT 128
121
110#elif defined(IPOD_3G) 122#elif defined(IPOD_3G)
111#define UI_TITLE "iPod 3G" 123#define UI_TITLE "iPod 3G"
112#define UI_WIDTH 218 /* width of GUI window */ 124#define UI_WIDTH 218 /* width of GUI window */