summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Arigo <markarigo@gmail.com>2007-09-08 03:30:32 +0000
committerMark Arigo <markarigo@gmail.com>2007-09-08 03:30:32 +0000
commit69b4654ea28049c7e8637d521327ba10ae405f8b (patch)
tree439c43eec4c9173bff8bf7416fcb37ce15b6053c
parente14a76093d067295d5536fd9a17ecf3a4ff9832c (diff)
downloadrockbox-69b4654ea28049c7e8637d521327ba10ae405f8b.tar.gz
rockbox-69b4654ea28049c7e8637d521327ba10ae405f8b.zip
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
-rw-r--r--firmware/export/config-c200.h3
-rw-r--r--uisimulator/sdl/button.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/firmware/export/config-c200.h b/firmware/export/config-c200.h
index c0e8753493..acc9969cf5 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 36f502e395..1bb9311890 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 */