summaryrefslogtreecommitdiff
path: root/uisimulator
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/sdl/UI-fuze.bmpbin0 -> 501138 bytes
-rw-r--r--uisimulator/sdl/button.c38
-rw-r--r--uisimulator/sdl/uisdl.h10
3 files changed, 47 insertions, 1 deletions
diff --git a/uisimulator/sdl/UI-fuze.bmp b/uisimulator/sdl/UI-fuze.bmp
new file mode 100644
index 0000000000..02b07b61ba
--- /dev/null
+++ b/uisimulator/sdl/UI-fuze.bmp
Binary files differ
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c
index 840a599aac..614308a070 100644
--- a/uisimulator/sdl/button.c
+++ b/uisimulator/sdl/button.c
@@ -950,7 +950,43 @@ void button_event(int key, bool pressed)
950 case SDLK_SPACE: 950 case SDLK_SPACE:
951 new_btn = BUTTON_SELECT; 951 new_btn = BUTTON_SELECT;
952 break; 952 break;
953 953#elif CONFIG_KEYPAD == SANSA_FUZE_PAD
954 case SDLK_KP4:
955 case SDLK_LEFT:
956 new_btn = BUTTON_LEFT;
957 break;
958 case SDLK_KP6:
959 case SDLK_RIGHT:
960 new_btn = BUTTON_RIGHT;
961 break;
962 case SDLK_KP8:
963 case SDLK_UP:
964 new_btn = BUTTON_SCROLL_BACK;
965 break;
966 case SDLK_KP2:
967 case SDLK_DOWN:
968 new_btn = BUTTON_SCROLL_FWD;
969 break;
970 case SDLK_PAGEUP:
971 case SDLK_KP9:
972 new_btn = BUTTON_UP;
973 break;
974 case SDLK_PAGEDOWN:
975 case SDLK_KP3:
976 new_btn = BUTTON_DOWN;
977 break;
978 case SDLK_KP_MINUS:
979 new_btn = BUTTON_POWER;
980 break;
981 case SDLK_KP_MULTIPLY:
982 new_btn = BUTTON_HOME;
983 break;
984 case SDLK_KP5:
985 case SDLK_SPACE:
986 case SDLK_KP_ENTER:
987 case SDLK_RETURN:
988 new_btn = BUTTON_SELECT;
989 break;
954#elif CONFIG_KEYPAD == SANSA_CLIP_PAD 990#elif CONFIG_KEYPAD == SANSA_CLIP_PAD
955 case SDLK_KP4: 991 case SDLK_KP4:
956 case SDLK_LEFT: 992 case SDLK_LEFT:
diff --git a/uisimulator/sdl/uisdl.h b/uisimulator/sdl/uisdl.h
index 4332426963..5b0f944d3f 100644
--- a/uisimulator/sdl/uisdl.h
+++ b/uisimulator/sdl/uisdl.h
@@ -436,6 +436,16 @@
436#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ 436#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
437#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ 437#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
438 438
439#elif defined(SANSA_FUZE)
440#define UI_TITLE "Sansa Fuze"
441#define UI_WIDTH 279 /* width of GUI window */
442#define UI_HEIGHT 449 /* height of GUI window */
443/* high-colour */
444#define UI_LCD_POSX 30 /* x position of lcd */
445#define UI_LCD_POSY 31 /* y position of lcd */
446#define UI_LCD_WIDTH LCD_WIDTH
447#define UI_LCD_HEIGHT LCD_HEIGHT
448
439#elif defined(SANSA_CLIP) 449#elif defined(SANSA_CLIP)
440#define UI_TITLE "Sansa Clip" 450#define UI_TITLE "Sansa Clip"
441#define UI_WIDTH 205 /* width of GUI window */ 451#define UI_WIDTH 205 /* width of GUI window */