From 69b4654ea28049c7e8637d521327ba10ae405f8b Mon Sep 17 00:00:00 2001 From: Mark Arigo Date: Sat, 8 Sep 2007 03:30:32 +0000 Subject: Allow the volume keys to be used in lists. Fix the sim buttons. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14638 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config-c200.h | 3 +++ uisimulator/sdl/button.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/firmware/export/config-c200.h b/firmware/export/config-c200.h index c0e8753..acc9969 100644 --- a/firmware/export/config-c200.h +++ b/firmware/export/config-c200.h @@ -68,6 +68,9 @@ #define CONFIG_KEYPAD SANSA_C200_PAD +/* define this if the target has volume keys which can be used in the lists */ +#define HAVE_VOLUME_IN_LIST + /* Define this if you do software codec */ #define CONFIG_CODEC SWCODEC diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c index 36f502e..1bb9311 100644 --- a/uisimulator/sdl/button.c +++ b/uisimulator/sdl/button.c @@ -579,10 +579,10 @@ void button_event(int key, bool pressed) new_btn = BUTTON_SELECT; break; case SDLK_KP7: - new_btn = BUTTON_VOL_UP; + new_btn = BUTTON_VOL_DOWN; break; case SDLK_KP9: - new_btn = BUTTON_VOL_DOWN; + new_btn = BUTTON_VOL_UP; break; #endif /* CONFIG_KEYPAD */ -- cgit v1.1