diff options
author | Mark Arigo <markarigo@gmail.com> | 2009-05-25 21:10:45 +0000 |
---|---|---|
committer | Mark Arigo <markarigo@gmail.com> | 2009-05-25 21:10:45 +0000 |
commit | 758bb3bc628705ff8e5c677b3b2d87720c726c13 (patch) | |
tree | d78cbf984e4bc613b0b76fcf4a5f090ab1d774b8 /uisimulator | |
parent | d2ea7db6f55cbb121870ecd41d4d80581354b799 (diff) | |
download | rockbox-758bb3bc628705ff8e5c677b3b2d87720c726c13.tar.gz rockbox-758bb3bc628705ff8e5c677b3b2d87720c726c13.zip |
3 new ports: Samsung YH-820, YH-920, and YH-925. Mostly functional. Audio working on 820 & 925 (untested on the 920). No battery readings. No recording. No plugins. Keymap needs work.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21083 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r-- | uisimulator/sdl/UI-yh_820.bmp | bin | 0 -> 472566 bytes | |||
-rw-r--r-- | uisimulator/sdl/UI-yh_920.bmp | bin | 0 -> 555750 bytes | |||
-rw-r--r-- | uisimulator/sdl/UI-yh_925.bmp | bin | 0 -> 555750 bytes | |||
-rw-r--r-- | uisimulator/sdl/button.c | 36 | ||||
-rw-r--r-- | uisimulator/sdl/uisdl.h | 18 |
5 files changed, 54 insertions, 0 deletions
diff --git a/uisimulator/sdl/UI-yh_820.bmp b/uisimulator/sdl/UI-yh_820.bmp new file mode 100644 index 0000000000..b74aedba91 --- /dev/null +++ b/uisimulator/sdl/UI-yh_820.bmp | |||
Binary files differ | |||
diff --git a/uisimulator/sdl/UI-yh_920.bmp b/uisimulator/sdl/UI-yh_920.bmp new file mode 100644 index 0000000000..6d330d417d --- /dev/null +++ b/uisimulator/sdl/UI-yh_920.bmp | |||
Binary files differ | |||
diff --git a/uisimulator/sdl/UI-yh_925.bmp b/uisimulator/sdl/UI-yh_925.bmp new file mode 100644 index 0000000000..6d330d417d --- /dev/null +++ b/uisimulator/sdl/UI-yh_925.bmp | |||
Binary files differ | |||
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c index 9c8f334b43..99cca38f66 100644 --- a/uisimulator/sdl/button.c +++ b/uisimulator/sdl/button.c | |||
@@ -1101,6 +1101,42 @@ void button_event(int key, bool pressed) | |||
1101 | case SDLK_KP_ENTER: | 1101 | case SDLK_KP_ENTER: |
1102 | new_btn = BUTTON_MENU; | 1102 | new_btn = BUTTON_MENU; |
1103 | break; | 1103 | break; |
1104 | #elif CONFIG_KEYPAD == SAMSUNG_YH_PAD | ||
1105 | case SDLK_KP4: | ||
1106 | case SDLK_LEFT: | ||
1107 | new_btn = BUTTON_LEFT; | ||
1108 | break; | ||
1109 | case SDLK_KP6: | ||
1110 | case SDLK_RIGHT: | ||
1111 | new_btn = BUTTON_RIGHT; | ||
1112 | break; | ||
1113 | case SDLK_KP8: | ||
1114 | case SDLK_UP: | ||
1115 | new_btn = BUTTON_UP; | ||
1116 | break; | ||
1117 | case SDLK_KP2: | ||
1118 | case SDLK_DOWN: | ||
1119 | new_btn = BUTTON_DOWN; | ||
1120 | break; | ||
1121 | case SDLK_KP5: | ||
1122 | case SDLK_KP_ENTER: | ||
1123 | new_btn = BUTTON_PLAY; | ||
1124 | break; | ||
1125 | case SDLK_KP9: | ||
1126 | case SDLK_PAGEUP: | ||
1127 | new_btn = BUTTON_FFWD; | ||
1128 | break; | ||
1129 | #ifdef SAMSUNG_YH820 | ||
1130 | case SDLK_KP7: | ||
1131 | #else | ||
1132 | case SDLK_KP3: | ||
1133 | #endif | ||
1134 | case SDLK_PAGEDOWN: | ||
1135 | new_btn = BUTTON_REW; | ||
1136 | break; | ||
1137 | case SDLK_KP_PLUS: | ||
1138 | new_btn = BUTTON_REC; | ||
1139 | break; | ||
1104 | #else | 1140 | #else |
1105 | #error No keymap defined! | 1141 | #error No keymap defined! |
1106 | #endif /* CONFIG_KEYPAD */ | 1142 | #endif /* CONFIG_KEYPAD */ |
diff --git a/uisimulator/sdl/uisdl.h b/uisimulator/sdl/uisdl.h index b4936fa77b..dae1d20393 100644 --- a/uisimulator/sdl/uisdl.h +++ b/uisimulator/sdl/uisdl.h | |||
@@ -302,6 +302,24 @@ | |||
302 | #define UI_LCD_POSX 45 /* x position of lcd */ | 302 | #define UI_LCD_POSX 45 /* x position of lcd */ |
303 | #define UI_LCD_POSY 90 /* y position of lcd */ | 303 | #define UI_LCD_POSY 90 /* y position of lcd */ |
304 | 304 | ||
305 | #elif defined(SAMSUNG_YH820) | ||
306 | #define UI_TITLE "Samsung YH-820" | ||
307 | #define UI_WIDTH 368 /* width of GUI window */ | ||
308 | #define UI_HEIGHT 428 /* height of GUI window */ | ||
309 | #define UI_LCD_POSX 120 /* x position of lcd */ | ||
310 | #define UI_LCD_POSY 75 /* y position of lcd */ | ||
311 | |||
312 | #elif defined(SAMSUNG_YH920) || defined(SAMSUNG_YH925) | ||
313 | #ifdef SAMSUNG_YH920 | ||
314 | #define UI_TITLE "Samsung YH-920" | ||
315 | #else | ||
316 | #define UI_TITLE "Samsung YH-925" | ||
317 | #endif | ||
318 | #define UI_WIDTH 408 /* width of GUI window */ | ||
319 | #define UI_HEIGHT 454 /* height of GUI window */ | ||
320 | #define UI_LCD_POSX 124 /* x position of lcd */ | ||
321 | #define UI_LCD_POSY 42 /* y position of lcd */ | ||
322 | |||
305 | #else | 323 | #else |
306 | #error no UI defines | 324 | #error no UI defines |
307 | #endif | 325 | #endif |