diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-08-26 11:43:51 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-08-26 11:43:51 +0000 |
commit | aaa1636a8b17ab9ad1e5026c490ca1066280284a (patch) | |
tree | d3ab4701aae8639b949b4ec24f9f8da09b0f4cd9 /uisimulator/buttonmap/sansa-fuze.c | |
parent | 1d613bee0fd4b3bb6266a7ad93aade2aaeb3705c (diff) | |
download | rockbox-aaa1636a8b17ab9ad1e5026c490ca1066280284a.tar.gz rockbox-aaa1636a8b17ab9ad1e5026c490ca1066280284a.zip |
Move to a proper sdl key config instead of using the d2 pad. make the mouse wheel work, middle click is "select" and right click is "back"
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27891 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/buttonmap/sansa-fuze.c')
-rw-r--r-- | uisimulator/buttonmap/sansa-fuze.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/uisimulator/buttonmap/sansa-fuze.c b/uisimulator/buttonmap/sansa-fuze.c index 2788af5d51..fcd935946e 100644 --- a/uisimulator/buttonmap/sansa-fuze.c +++ b/uisimulator/buttonmap/sansa-fuze.c | |||
@@ -66,6 +66,12 @@ int key_to_button(int keyboard_button) | |||
66 | case SDLK_RETURN: | 66 | case SDLK_RETURN: |
67 | new_btn = BUTTON_SELECT; | 67 | new_btn = BUTTON_SELECT; |
68 | break; | 68 | break; |
69 | case SDL_BUTTON_WHEELUP: | ||
70 | new_btn = BUTTON_SCROLL_BACK; | ||
71 | break; | ||
72 | case SDL_BUTTON_WHEELDOWN: | ||
73 | new_btn = BUTTON_SCROLL_FWD; | ||
74 | break; | ||
69 | } | 75 | } |
70 | return new_btn; | 76 | return new_btn; |
71 | } | 77 | } |