From 1fdb5bff39158afedafbab369c61840f345251de Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 16 Aug 2006 00:32:45 +0000 Subject: 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 --- apps/keymaps/keymap-newtarget.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/keymaps/keymap-newtarget.c') 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 @@ * if there's no need to check the previous button's value, use BUTTON_NONE * Insert LAST_ITEM_IN_LIST at the end of each mapping */ -struct button_mapping button_context_standard[] = { +const struct button_mapping button_context_standard[] = { LAST_ITEM_IN_LIST }; /* button_context_standard */ -struct button_mapping button_context_wps[] = { +const struct button_mapping button_context_wps[] = { LAST_ITEM_IN_LIST }; /* button_context_wps */ @@ -55,7 +55,7 @@ struct button_mapping button_context_wps[] = { /* get_context_mapping returns a pointer to one of the above defined arrays depending on the context */ -struct button_mapping* get_context_mapping(int context) +const struct button_mapping* get_context_mapping(int context) { switch (context) { -- cgit v1.2.3