summaryrefslogtreecommitdiffstats
path: root/uisimulator/buttonmap/sansa-e200.c
diff options
context:
space:
mode:
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;
}