summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorTomer Shalev <shalev.tomer@gmail.com>2010-01-16 21:43:10 +0000
committerTomer Shalev <shalev.tomer@gmail.com>2010-01-16 21:43:10 +0000
commite04f64ba155a9eb59cef87bbaea60908214ec4cc (patch)
tree26ee3de3f94acbb6635e655c448fe274e308d363 /uisimulator
parentf7237af58d0371314a4b2e71d80f558c46eb03bb (diff)
downloadrockbox-e04f64ba155a9eb59cef87bbaea60908214ec4cc.tar.gz
rockbox-e04f64ba155a9eb59cef87bbaea60908214ec4cc.tar.bz2
rockbox-e04f64ba155a9eb59cef87bbaea60908214ec4cc.zip
Simulator: Add key mappings for Cowon D2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24253 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/sdl/button.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c
index f9bfac1dee..2a0ce83c5d 100644
--- a/uisimulator/sdl/button.c
+++ b/uisimulator/sdl/button.c
@@ -802,16 +802,25 @@ void button_event(int key, bool pressed)
break;
#elif CONFIG_KEYPAD == COWON_D2_PAD
+ case SDLK_KP_MULTIPLY:
+ case SDLK_F8:
case SDLK_ESCAPE:
+ case SDLK_BACKSPACE:
+ case SDLK_DELETE:
new_btn = BUTTON_POWER;
break;
case SDLK_KP_PLUS:
+ case SDLK_EQUALS:
new_btn = BUTTON_PLUS;
break;
case SDLK_KP_MINUS:
+ case SDLK_MINUS:
new_btn = BUTTON_MINUS;
break;
case SDLK_KP_ENTER:
+ case SDLK_RETURN:
+ case SDLK_SPACE:
+ case SDLK_INSERT:
new_btn = BUTTON_MENU;
break;
#elif CONFIG_KEYPAD == IAUDIO67_PAD