forked from len0rd/rockbox
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
This commit is contained in:
parent
d2ea7db6f5
commit
758bb3bc62
46 changed files with 5028 additions and 26 deletions
BIN
uisimulator/sdl/UI-yh_820.bmp
Normal file
BIN
uisimulator/sdl/UI-yh_820.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 462 KiB |
BIN
uisimulator/sdl/UI-yh_920.bmp
Normal file
BIN
uisimulator/sdl/UI-yh_920.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 543 KiB |
BIN
uisimulator/sdl/UI-yh_925.bmp
Normal file
BIN
uisimulator/sdl/UI-yh_925.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 543 KiB |
|
|
@ -1101,6 +1101,42 @@ void button_event(int key, bool pressed)
|
|||
case SDLK_KP_ENTER:
|
||||
new_btn = BUTTON_MENU;
|
||||
break;
|
||||
#elif CONFIG_KEYPAD == SAMSUNG_YH_PAD
|
||||
case SDLK_KP4:
|
||||
case SDLK_LEFT:
|
||||
new_btn = BUTTON_LEFT;
|
||||
break;
|
||||
case SDLK_KP6:
|
||||
case SDLK_RIGHT:
|
||||
new_btn = BUTTON_RIGHT;
|
||||
break;
|
||||
case SDLK_KP8:
|
||||
case SDLK_UP:
|
||||
new_btn = BUTTON_UP;
|
||||
break;
|
||||
case SDLK_KP2:
|
||||
case SDLK_DOWN:
|
||||
new_btn = BUTTON_DOWN;
|
||||
break;
|
||||
case SDLK_KP5:
|
||||
case SDLK_KP_ENTER:
|
||||
new_btn = BUTTON_PLAY;
|
||||
break;
|
||||
case SDLK_KP9:
|
||||
case SDLK_PAGEUP:
|
||||
new_btn = BUTTON_FFWD;
|
||||
break;
|
||||
#ifdef SAMSUNG_YH820
|
||||
case SDLK_KP7:
|
||||
#else
|
||||
case SDLK_KP3:
|
||||
#endif
|
||||
case SDLK_PAGEDOWN:
|
||||
new_btn = BUTTON_REW;
|
||||
break;
|
||||
case SDLK_KP_PLUS:
|
||||
new_btn = BUTTON_REC;
|
||||
break;
|
||||
#else
|
||||
#error No keymap defined!
|
||||
#endif /* CONFIG_KEYPAD */
|
||||
|
|
|
|||
|
|
@ -302,6 +302,24 @@
|
|||
#define UI_LCD_POSX 45 /* x position of lcd */
|
||||
#define UI_LCD_POSY 90 /* y position of lcd */
|
||||
|
||||
#elif defined(SAMSUNG_YH820)
|
||||
#define UI_TITLE "Samsung YH-820"
|
||||
#define UI_WIDTH 368 /* width of GUI window */
|
||||
#define UI_HEIGHT 428 /* height of GUI window */
|
||||
#define UI_LCD_POSX 120 /* x position of lcd */
|
||||
#define UI_LCD_POSY 75 /* y position of lcd */
|
||||
|
||||
#elif defined(SAMSUNG_YH920) || defined(SAMSUNG_YH925)
|
||||
#ifdef SAMSUNG_YH920
|
||||
#define UI_TITLE "Samsung YH-920"
|
||||
#else
|
||||
#define UI_TITLE "Samsung YH-925"
|
||||
#endif
|
||||
#define UI_WIDTH 408 /* width of GUI window */
|
||||
#define UI_HEIGHT 454 /* height of GUI window */
|
||||
#define UI_LCD_POSX 124 /* x position of lcd */
|
||||
#define UI_LCD_POSY 42 /* y position of lcd */
|
||||
|
||||
#else
|
||||
#error no UI defines
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue