diff options
author | Thomas Martitz <kugel@rockbox.org> | 2014-01-16 10:18:41 +0100 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2014-01-16 10:21:18 +0100 |
commit | 06d3d4adb326d97e61395fbb1ff8ff15f44f1f2c (patch) | |
tree | 082c10a1ef5584344954c60a4feb67ca7b2cc3ae /uisimulator/buttonmap | |
parent | 01b28ea725a040bd02690ece0726779d5ef83d65 (diff) |
sansaclipzip: Correct simulator buttonmap for the different button layout.
Change-Id: I1b4cc257e8d85822177c377cc0fda14e8904fddb
Diffstat (limited to 'uisimulator/buttonmap')
-rw-r--r-- | uisimulator/buttonmap/sansa-clip.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/uisimulator/buttonmap/sansa-clip.c b/uisimulator/buttonmap/sansa-clip.c index c1997ade6d..e6136a4224 100644 --- a/uisimulator/buttonmap/sansa-clip.c +++ b/uisimulator/buttonmap/sansa-clip.c @@ -70,6 +70,17 @@ int key_to_button(int keyboard_button) return new_btn; } +#ifdef SANSA_CLIPZIP +struct button_map bm[] = { + { SDLK_KP_MULTIPLY, 31, 171, 12, "Home" }, + { SDLK_KP5, 81, 211, 10, "Select" }, + { SDLK_KP8, 81, 186, 13, "Play" }, + { SDLK_KP4, 32, 211, 14, "Left" }, + { SDLK_KP6, 112, 211, 14, "Right" }, + { SDLK_KP2, 81, 231, 14, "Menu" }, + { 0, 0, 0, 0, "None" } +}; +#else struct button_map bm[] = { { SDLK_KP_MULTIPLY, 165, 158, 17, "Home" }, { SDLK_KP5, 102, 230, 29, "Select" }, @@ -79,3 +90,4 @@ struct button_map bm[] = { { SDLK_KP2, 105, 275, 22, "Menu" }, { 0, 0, 0, 0, "None" } }; +#endif |