summaryrefslogtreecommitdiff
path: root/uisimulator/buttonmap/sansa-fuzeplus.c
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-11-30 18:39:22 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-11-30 18:39:22 +0000
commit374a08ab31c3e298fd6d956423e9493c8f837718 (patch)
tree1193231591c6d92bf6dd38adab719379422aed2d /uisimulator/buttonmap/sansa-fuzeplus.c
parentd6a397d4d05658097cea097ccf14aba0f17b8549 (diff)
fuze+: update keymap and touchpad driver based on FS#12405 with minor modifications. Thanks to Jean-Louis Biasini.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31098 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/buttonmap/sansa-fuzeplus.c')
-rw-r--r--uisimulator/buttonmap/sansa-fuzeplus.c25
1 files changed, 16 insertions, 9 deletions
diff --git a/uisimulator/buttonmap/sansa-fuzeplus.c b/uisimulator/buttonmap/sansa-fuzeplus.c
index bd78274a03..40a4d21ed3 100644
--- a/uisimulator/buttonmap/sansa-fuzeplus.c
+++ b/uisimulator/buttonmap/sansa-fuzeplus.c
@@ -49,7 +49,9 @@ int key_to_button(int keyboard_button)
case SDLK_KP9:
new_btn = BUTTON_PLAYPAUSE;
break;
- case SDLK_INSERT:
+ case SDLK_KP0:
+ new_btn = BUTTON_TWO_FINGERS;
+ break;
case SDLK_KP7:
new_btn = BUTTON_BACK;
break;
@@ -66,23 +68,28 @@ int key_to_button(int keyboard_button)
new_btn = BUTTON_VOL_DOWN;
break;
case SDLK_HOME:
- case SDLK_KP1:
new_btn = BUTTON_POWER;
break;
+ case SDLK_KP1:
+ new_btn = BUTTON_BOTTOMLEFT;
+ break;
+ case SDLK_KP3:
+ new_btn = BUTTON_BOTTOMRIGHT;
+ break;
}
return new_btn;
}
struct button_map bm[] = {
- { SDLK_KP8, 70, 265, 35, "Scroll Back" },
- { SDLK_KP9, 141, 255, 31, "Play" },
- { SDLK_KP_MULTIPLY, 228, 267, 18, "Home" },
+ { SDLK_KP8, 70, 265, 35, "Up" },
+ { SDLK_KP9, 141, 255, 31, "Play/Pause" },
{ SDLK_LEFT, 69, 329, 31, "Left" },
{ SDLK_SPACE, 141, 330, 20, "Select" },
{ SDLK_RIGHT, 214, 331, 23, "Right" },
- { SDLK_KP3, 142, 406, 30, "Menu" },
- { SDLK_DOWN, 221, 384, 24, "Scroll Fwd" },
- { SDLK_KP_MINUS, 270, 299, 25, "Power" },
- { SDLK_h, 269, 358, 26, "Hold" },
+ { SDLK_KP1, 69, 406, 30, "Bottom Left" },
+ { SDLK_KP3, 142, 406, 30, "Bottom Right" },
+ { SDLK_DOWN, 221, 384, 24, "Down" },
+ { SDLK_KP_MINUS, 270, 150, 25, "Volume -" },
+ { SDLK_KP_PLUS, 270, 180, 25, "Volume +" },
{ 0, 0, 0, 0, "None" }
};