summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-02-16 22:10:22 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2014-02-16 22:10:22 +0100
commitcefaa46573c487a38a7025c737a46fcecc76db4e (patch)
tree39dfd758aaf8cf067294de975db9cd209f07d432
parentdb392245e2524085bbfb67b09fa1e6634752c529 (diff)
downloadrockbox-cefaa46.tar.gz
rockbox-cefaa46.tar.bz2
rockbox-cefaa46.zip
zenxfistyle: add simulator bitmap and button map
Change-Id: I68a107887e6b1563b6c5ab425e98be7e012e7976
-rw-r--r--firmware/target/hosted/sdl/sim-ui-defines.h7
-rw-r--r--uisimulator/bitmaps/UI-creativezenxfistyle.bmpbin0 -> 522846 bytes
-rw-r--r--uisimulator/buttonmap/creative-zen.c13
3 files changed, 20 insertions, 0 deletions
diff --git a/firmware/target/hosted/sdl/sim-ui-defines.h b/firmware/target/hosted/sdl/sim-ui-defines.h
index f65e1b7da7..8f2a112cf9 100644
--- a/firmware/target/hosted/sdl/sim-ui-defines.h
+++ b/firmware/target/hosted/sdl/sim-ui-defines.h
@@ -501,6 +501,13 @@
#define UI_LCD_POSX 27
#define UI_LCD_POSY 48
+#elif defined(CREATIVE_ZENXFISTYLE)
+#define UI_TITLE "Creative ZEN X-Fi Style"
+#define UI_WIDTH 548 /* width of GUI window */
+#define UI_HEIGHT 318/* height of GUI window */
+#define UI_LCD_POSX 46
+#define UI_LCD_POSY 40
+
#elif defined(SIMULATOR)
#error no UI defines
#endif
diff --git a/uisimulator/bitmaps/UI-creativezenxfistyle.bmp b/uisimulator/bitmaps/UI-creativezenxfistyle.bmp
new file mode 100644
index 0000000000..df00f0b893
--- /dev/null
+++ b/uisimulator/bitmaps/UI-creativezenxfistyle.bmp
Binary files differ
diff --git a/uisimulator/buttonmap/creative-zen.c b/uisimulator/buttonmap/creative-zen.c
index e8f07b4e94..fa54aadb47 100644
--- a/uisimulator/buttonmap/creative-zen.c
+++ b/uisimulator/buttonmap/creative-zen.c
@@ -129,6 +129,19 @@ struct button_map bm[] = {
{ SDLK_PAGEDOWN, 101, 313, 15, "Play" },
{ 0, 0, 0, 0, "None" }
};
+#elif defined(CREATIVE_ZENXFISTYLE)
+struct button_map bm[] = {
+ { SDLK_LEFT, 437, 157, 13, "Left" },
+ { SDLK_RIGHT, 504, 157, 13, "Right" },
+ { SDLK_UP, 471, 125, 13, "Up" },
+ { SDLK_DOWN, 471, 192, 13, "Down" },
+ { SDLK_RETURN, 471, 157, 25, "Select" },
+ { SDLK_HOME, 447, 57, 15, "Back" },
+ { SDLK_PAGEUP, 495, 57, 15, "Menu" },
+ { SDLK_END, 447, 259, 15, "Shortcut" },
+ { SDLK_PAGEDOWN, 495, 259, 15, "Play" },
+ { 0, 0, 0, 0, "None" }
+};
#else
#error please define button map
#endif