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/ipod.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/ipod.c')
-rw-r--r-- | uisimulator/buttonmap/ipod.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/uisimulator/buttonmap/ipod.c b/uisimulator/buttonmap/ipod.c index 504b77b8dd..1fc95d8dd1 100644 --- a/uisimulator/buttonmap/ipod.c +++ b/uisimulator/buttonmap/ipod.c | |||
@@ -58,6 +58,12 @@ int key_to_button(int keyboard_button) | |||
58 | case SDLK_INSERT: | 58 | case SDLK_INSERT: |
59 | new_btn = BUTTON_MENU; | 59 | new_btn = BUTTON_MENU; |
60 | break; | 60 | break; |
61 | case SDL_BUTTON_WHEELUP: | ||
62 | new_btn = BUTTON_SCROLL_BACK; | ||
63 | break; | ||
64 | case SDL_BUTTON_WHEELDOWN: | ||
65 | new_btn = BUTTON_SCROLL_FWD; | ||
66 | break; | ||
61 | } | 67 | } |
62 | return new_btn; | 68 | return new_btn; |
63 | } | 69 | } |