summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorMark Arigo <markarigo@gmail.com>2008-02-24 04:12:16 +0000
committerMark Arigo <markarigo@gmail.com>2008-02-24 04:12:16 +0000
commitd829075a0003fd5a976d5e2303b0317d3dc63ea8 (patch)
treefd5838c65cedc6d2b889ba1a332f99e53553ca7c /uisimulator
parentf928c8f0f854a91323b19357021bcaef9a7cc27e (diff)
downloadrockbox-d829075a0003fd5a976d5e2303b0317d3dc63ea8.tar.gz
rockbox-d829075a0003fd5a976d5e2303b0317d3dc63ea8.tar.bz2
rockbox-d829075a0003fd5a976d5e2303b0317d3dc63ea8.zip
Driver for the Synaptics touchpad on the m:robe 100 based on the 3-wire interface spec. Needs some tweaking as it's too sensitive with the default hardware settings. For now, the vertical strip is divided into up/select/down buttons. Also, redo the keymap (using the Gigabeat as a starting point), but it still needs a good bit of work.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16400 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/sdl/button.c34
1 files changed, 16 insertions, 18 deletions
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c
index cea65c9fa6..0b347c9322 100644
--- a/uisimulator/sdl/button.c
+++ b/uisimulator/sdl/button.c
@@ -673,6 +673,15 @@ void button_event(int key, bool pressed)
break;
#elif CONFIG_KEYPAD == MROBE100_PAD
+ case SDLK_KP1:
+ new_btn = BUTTON_DISPLAY;
+ break;
+ case SDLK_KP7:
+ new_btn = BUTTON_MENU;
+ break;
+ case SDLK_KP9:
+ new_btn = BUTTON_PLAY;
+ break;
case SDLK_KP4:
case SDLK_LEFT:
new_btn = BUTTON_LEFT;
@@ -683,32 +692,21 @@ void button_event(int key, bool pressed)
break;
case SDLK_KP8:
case SDLK_UP:
- new_btn = BUTTON_SCROLL_UP;
+ new_btn = BUTTON_UP;
break;
case SDLK_KP2:
case SDLK_DOWN:
- new_btn = BUTTON_SCROLL_DOWN;
+ new_btn = BUTTON_DOWN;
break;
- case SDLK_KP_PLUS:
- case SDLK_F8:
- new_btn = BUTTON_POWER;
+ case SDLK_KP5:
+ case SDLK_SPACE:
+ new_btn = BUTTON_SELECT;
break;
+ case SDLK_F8:
case SDLK_ESCAPE:
new_btn = BUTTON_POWER;
break;
- case SDLK_KP_DIVIDE:
- case SDLK_F1:
- new_btn = BUTTON_REW;
- break;
- case SDLK_KP_MULTIPLY:
- case SDLK_F2:
- new_btn = BUTTON_FF;
- break;
- case SDLK_KP5:
- case SDLK_SPACE:
- new_btn = BUTTON_PLAY;
- break;
-
+
#elif CONFIG_KEYPAD == COWOND2_PAD
case SDLK_KP4:
case SDLK_LEFT: