diff options
Diffstat (limited to 'uisimulator')
-rw-r--r-- | uisimulator/sdl/UI-m200v4.bmp | bin | 0 -> 176792 bytes | |||
-rw-r--r-- | uisimulator/sdl/button.c | 10 | ||||
-rw-r--r-- | uisimulator/sdl/uisdl.h | 16 |
3 files changed, 21 insertions, 5 deletions
diff --git a/uisimulator/sdl/UI-m200v4.bmp b/uisimulator/sdl/UI-m200v4.bmp Binary files differnew file mode 100644 index 0000000000..6461b3ec62 --- /dev/null +++ b/uisimulator/sdl/UI-m200v4.bmp diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c index db96b404ba..0405ef0d1e 100644 --- a/uisimulator/sdl/button.c +++ b/uisimulator/sdl/button.c @@ -1031,23 +1031,23 @@ void button_event(int key, bool pressed) break; case SDLK_KP8: case SDLK_UP: - new_btn = BUTTON_PLAYPAUSE; + new_btn = BUTTON_UP; break; case SDLK_KP2: case SDLK_DOWN: - new_btn = BUTTON_REPEATAB; + new_btn = BUTTON_DOWN; break; case SDLK_PLUS: - new_btn = BUTTON_MENU; + new_btn = BUTTON_POWER; break; case SDLK_KP5: new_btn = BUTTON_SELECT; break; case SDLK_KP7: - new_btn = BUTTON_VOLDOWN; + new_btn = BUTTON_VOL_DOWN; break; case SDLK_KP9: - new_btn = BUTTON_VOLUP; + new_btn = BUTTON_VOL_UP; break; #elif CONFIG_KEYPAD == PHILIPS_HDD1630_PAD diff --git a/uisimulator/sdl/uisdl.h b/uisimulator/sdl/uisdl.h index c04f3cfaad..e33be01948 100644 --- a/uisimulator/sdl/uisdl.h +++ b/uisimulator/sdl/uisdl.h @@ -476,6 +476,22 @@ #define UI_LCD_WIDTH LCD_WIDTH #define UI_LCD_HEIGHT LCD_HEIGHT +#elif defined(SANSA_M200V4) +#define UI_TITLE "sansa m200v4" +#define UI_WIDTH 350 /* width of GUI window */ +#define UI_HEIGHT 168 /* height of GUI window */ +#define UI_LCD_BGCOLOR 94, 104, 84 /* bkgnd color of LCD (no backlight) */ +#define UI_LCD_BGCOLORLIGHT 60, 160, 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 42 /* x position of lcd */ +#define UI_LCD_POSY 55 /* y position of lcd */ +#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ +#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */ + + +#else +#error no UI defines #endif extern SDL_Surface *gui_surface; extern bool background; /* True if the background image is enabled */ |