diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-08-16 00:32:45 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-08-16 00:32:45 +0000 |
commit | 1fdb5bff39158afedafbab369c61840f345251de (patch) | |
tree | 60b7b2ff42fc841773fc8ba17dc09b461f705711 /apps/keymaps/keymap-newtarget.c | |
parent | 013ab3dd3d49059a4896bce4498a48b91ade2bdc (diff) | |
download | rockbox-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.c | 6 |
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 | */ |
45 | struct button_mapping button_context_standard[] = { | 45 | const 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 | ||
50 | struct button_mapping button_context_wps[] = { | 50 | const 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 */ |
58 | struct button_mapping* get_context_mapping(int context) | 58 | const struct button_mapping* get_context_mapping(int context) |
59 | { | 59 | { |
60 | switch (context) | 60 | switch (context) |
61 | { | 61 | { |