From b09d3aec392538ca0934644ff6357c41aaa4c323 Mon Sep 17 00:00:00 2001 From: Marcin Bukat Date: Mon, 26 Apr 2010 21:40:00 +0000 Subject: Add MPIO HD200 port - changed files git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25724 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/sdl/button.c | 36 ++++++++++++++++++++++++++++++++++++ uisimulator/sdl/uisdl.h | 8 ++++++++ 2 files changed, 44 insertions(+) (limited to 'uisimulator') diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c index 4fd276ac97..2bb7764782 100644 --- a/uisimulator/sdl/button.c +++ b/uisimulator/sdl/button.c @@ -1305,6 +1305,30 @@ void button_event(int key, bool pressed) case SDLK_KP_MULTIPLY: new_btn = BUTTON_REC; break; + +#elif CONFIG_KEYPAD == MPIO_HD200_PAD + case SDLK_UP: + new_btn = BUTTON_PREV; + break; + case SDLK_DOWN: + new_btn = BUTTON_NEXT; + break; + case SDLK_SPACE: + new_btn = BUTTON_SELECT; + break; + case SDLK_RETURN: + new_btn = BUTTON_PLAY; + break; + case SDLK_LEFT: + new_btn = BUTTON_VOL_DOWN; + break; + case SDLK_RIGHT: + new_btn = BUTTON_VOL_UP; + break; + case SDLK_ESCAPE: + new_btn = BUTTON_REC; + break; + #else #error No keymap defined! #endif /* CONFIG_KEYPAD */ @@ -1850,6 +1874,18 @@ struct button_map bm[] = { { SDLK_KP3, 311, 569, 47, "Menu" }, { 0, 0, 0, 0, "None" } }; +#elif defined (MPIO_HD200) +struct button_map bm[] = { + { SDLK_ESCAPE, 369, 257, 20, "Rec" }, + { SDLK_RETURN, 369, 305, 20, "Play/Stop" }, + { SDLK_UP, 353, 168, 10, "Rew" }, + { SDLK_DOWN, 353, 198, 10, "FF" }, + { SDLK_SPACE, 353, 186, 10, "Select" }, + { SDLK_LEFT, 123, 67, 20, "Vol Down" }, + { SDLK_RIGHT, 206, 67, 20, "Vol Up" }, + { SDLK_h, 369, 402, 30, "Hold" }, + { 0, 0, 0, 0, "None" } +}; #else struct button_map bm[] = { { 0, 0, 0, 0, ""} diff --git a/uisimulator/sdl/uisdl.h b/uisimulator/sdl/uisdl.h index ca422c66ef..dac84ffb74 100644 --- a/uisimulator/sdl/uisdl.h +++ b/uisimulator/sdl/uisdl.h @@ -389,6 +389,14 @@ #define UI_HEIGHT 488 /* height of GUI window */ #define UI_LCD_POSX 64 /* x position of lcd */ #define UI_LCD_POSY 61 /* y position of lcd */ + +#elif defined(MPIO_HD200) +#define UI_TITLE "MPIO HD200" +#define UI_WIDTH 430 /* width of GUI window */ +#define UI_HEIGHT 479 /* height of GUI window */ +#define UI_LCD_POSX 101 +#define UI_LCD_POSY 195 + #else #error no UI defines #endif -- cgit v1.2.3