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/action.h | |
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/action.h')
-rw-r--r-- | apps/action.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/action.h b/apps/action.h index 24f3d990f0..2210bda176 100644 --- a/apps/action.h +++ b/apps/action.h | |||
@@ -145,7 +145,7 @@ struct button_mapping { | |||
145 | /* get_context_map is a function which returns a button_mapping* depedning on the given context */ | 145 | /* get_context_map is a function which returns a button_mapping* depedning on the given context */ |
146 | /* custom button_mappings may "chain" to inbuilt CONTEXT's */ | 146 | /* custom button_mappings may "chain" to inbuilt CONTEXT's */ |
147 | int get_custom_action(int context,int timeout, | 147 | int get_custom_action(int context,int timeout, |
148 | struct button_mapping* (*get_context_map)(int)); | 148 | const struct button_mapping* (*get_context_map)(int)); |
149 | /* use if one of the standard CONTEXT_ mappings will work (ALL the core should be using this! */ | 149 | /* use if one of the standard CONTEXT_ mappings will work (ALL the core should be using this! */ |
150 | int get_action(int context, int timeout); | 150 | int get_action(int context, int timeout); |
151 | /* call this whenever you leave your button loop */ | 151 | /* call this whenever you leave your button loop */ |
@@ -160,6 +160,6 @@ bool action_userabort(int timeout); | |||
160 | void action_setsoftwarekeylock(int unlock_action, bool allow_remote); | 160 | void action_setsoftwarekeylock(int unlock_action, bool allow_remote); |
161 | 161 | ||
162 | /* no other code should need this apart from action.c */ | 162 | /* no other code should need this apart from action.c */ |
163 | struct button_mapping* get_context_mapping(int context); | 163 | const struct button_mapping* get_context_mapping(int context); |
164 | 164 | ||
165 | #endif | 165 | #endif |