diff --git a/uisimulator/sdl/UI-ipod1g2g.bmp b/uisimulator/sdl/UI-ipod1g2g.bmp new file mode 100644 index 0000000000..54473422e1 Binary files /dev/null and b/uisimulator/sdl/UI-ipod1g2g.bmp 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) 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 93305b0a7c..38bfdce429 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 */