summaryrefslogtreecommitdiff
path: root/apps/keymaps/keymap-newtarget.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-08-16 00:32:45 +0000
committerJens Arnold <amiconn@rockbox.org>2006-08-16 00:32:45 +0000
commit1fdb5bff39158afedafbab369c61840f345251de (patch)
tree60b7b2ff42fc841773fc8ba17dc09b461f705711 /apps/keymaps/keymap-newtarget.c
parent013ab3dd3d49059a4896bce4498a48b91ade2bdc (diff)
downloadrockbox-1fdb5bff39158afedafbab369c61840f345251de.tar.gz
rockbox-1fdb5bff39158afedafbab369c61840f345251de.zip
Changed the button action code to allow both single-fire and multi-fire events to be triggered with _REPEAT. Also simplifies the code. * Made the button mapping tables const to save RAM when running rockbox from flash ROM. * Repaired button mappings for Ondio. * Repaired some more button mappings for player. * Added missing TREE_STOP for iriver, and fixed WPS skipping for recorder.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10600 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/keymaps/keymap-newtarget.c')
-rw-r--r--apps/keymaps/keymap-newtarget.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/keymaps/keymap-newtarget.c b/apps/keymaps/keymap-newtarget.c
index 3cd828c0b4..ab1e157937 100644
--- a/apps/keymaps/keymap-newtarget.c
+++ b/apps/keymaps/keymap-newtarget.c
@@ -42,12 +42,12 @@
42 * if there's no need to check the previous button's value, use BUTTON_NONE 42 * if there's no need to check the previous button's value, use BUTTON_NONE
43 * Insert LAST_ITEM_IN_LIST at the end of each mapping 43 * Insert LAST_ITEM_IN_LIST at the end of each mapping
44 */ 44 */
45struct button_mapping button_context_standard[] = { 45const struct button_mapping button_context_standard[] = {
46 46
47 LAST_ITEM_IN_LIST 47 LAST_ITEM_IN_LIST
48}; /* button_context_standard */ 48}; /* button_context_standard */
49 49
50struct button_mapping button_context_wps[] = { 50const struct button_mapping button_context_wps[] = {
51 51
52 LAST_ITEM_IN_LIST 52 LAST_ITEM_IN_LIST
53}; /* button_context_wps */ 53}; /* button_context_wps */
@@ -55,7 +55,7 @@ struct button_mapping button_context_wps[] = {
55 55
56 56
57/* get_context_mapping returns a pointer to one of the above defined arrays depending on the context */ 57/* get_context_mapping returns a pointer to one of the above defined arrays depending on the context */
58struct button_mapping* get_context_mapping(int context) 58const struct button_mapping* get_context_mapping(int context)
59{ 59{
60 switch (context) 60 switch (context)
61 { 61 {