summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2006-10-26 13:38:09 +0000
committerBarry Wardell <rockbox@barrywardell.net>2006-10-26 13:38:09 +0000
commit24f4a2a8cfd561657ce25ebf93470716f07397fe (patch)
treef411d86cb56bd128fe0206d148005f0a882f686a /uisimulator
parent34193e5cf23e7d739c2ccda0ed82e77492578cef (diff)
downloadrockbox-24f4a2a8cfd561657ce25ebf93470716f07397fe.tar.gz
rockbox-24f4a2a8cfd561657ce25ebf93470716f07397fe.tar.bz2
rockbox-24f4a2a8cfd561657ce25ebf93470716f07397fe.zip
Allow the Sansa e200 UI simulator to be built. Thanks to Andre Smith for the nice image of the Sansa. Lots more to be done including testing and tweaking the keymaps and modifying the plugins for the Sansa's 176x220 LCD.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11351 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/sdl/UI-e200.bmpbin0 -> 522133 bytes
-rw-r--r--uisimulator/sdl/button.c12
-rw-r--r--uisimulator/sdl/uisdl.h10
3 files changed, 18 insertions, 4 deletions
diff --git a/uisimulator/sdl/UI-e200.bmp b/uisimulator/sdl/UI-e200.bmp
new file mode 100644
index 0000000000..ee9c6b5242
--- /dev/null
+++ b/uisimulator/sdl/UI-e200.bmp
Binary files differ
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c
index 22cfda1119..4408dde3e9 100644
--- a/uisimulator/sdl/button.c
+++ b/uisimulator/sdl/button.c
@@ -467,17 +467,17 @@ void button_event(int key, bool pressed)
break;
case SDLK_KP8:
case SDLK_UP:
- new_btn = BUTTON_UP;
+ new_btn = BUTTON_SCROLL_UP;
break;
case SDLK_KP2:
case SDLK_DOWN:
- new_btn = BUTTON_DOWN;
+ new_btn = BUTTON_SCROLL_DOWN;
break;
case SDLK_KP9:
- new_btn = BUTTON_SCROLL_UP;
+ new_btn = BUTTON_UP;
break;
case SDLK_KP3:
- new_btn = BUTTON_SCROLL_DOWN;
+ new_btn = BUTTON_DOWN;
break;
case SDLK_KP1:
new_btn = BUTTON_POWER;
@@ -485,6 +485,10 @@ void button_event(int key, bool pressed)
case SDLK_KP7:
new_btn = BUTTON_REC;
break;
+ case SDLK_KP5:
+ case SDLK_SPACE:
+ new_btn = BUTTON_SELECT;
+ break;
#endif /* CONFIG_KEYPAD */
case SDLK_KP0:
diff --git a/uisimulator/sdl/uisdl.h b/uisimulator/sdl/uisdl.h
index 9b844c3945..a8e05008af 100644
--- a/uisimulator/sdl/uisdl.h
+++ b/uisimulator/sdl/uisdl.h
@@ -231,6 +231,16 @@
#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
+#elif defined(SANSA_E200)
+#define UI_TITLE "Sansa e200"
+#define UI_WIDTH 260 /* width of GUI window */
+#define UI_HEIGHT 502 /* height of GUI window */
+/* high-colour */
+#define UI_LCD_POSX 42 /* x position of lcd */
+#define UI_LCD_POSY 37 /* y position of lcd (74 for real aspect) */
+#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
+#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
+
#elif defined(IRIVER_IFP7XX)
#define UI_TITLE "iriver iFP7xx"
#define UI_WIDTH 425 /* width of GUI window */