summaryrefslogtreecommitdiff
path: root/uisimulator/buttonmap/sansa-e200.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-08-26 11:43:51 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-08-26 11:43:51 +0000
commitaaa1636a8b17ab9ad1e5026c490ca1066280284a (patch)
treed3ab4701aae8639b949b4ec24f9f8da09b0f4cd9 /uisimulator/buttonmap/sansa-e200.c
parent1d613bee0fd4b3bb6266a7ad93aade2aaeb3705c (diff)
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-e200.c')
-rw-r--r--uisimulator/buttonmap/sansa-e200.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/uisimulator/buttonmap/sansa-e200.c b/uisimulator/buttonmap/sansa-e200.c
index 66655e26c5..b9a872caa1 100644
--- a/uisimulator/buttonmap/sansa-e200.c
+++ b/uisimulator/buttonmap/sansa-e200.c
@@ -65,6 +65,12 @@ int key_to_button(int keyboard_button)
case SDLK_SPACE:
new_btn = BUTTON_SELECT;
break;
+ case SDL_BUTTON_WHEELUP:
+ new_btn = BUTTON_SCROLL_BACK;
+ break;
+ case SDL_BUTTON_WHEELDOWN:
+ new_btn = BUTTON_SCROLL_FWD;
+ break;
}
return new_btn;
}