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/action.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/action.h') 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 { /* get_context_map is a function which returns a button_mapping* depedning on the given context */ /* custom button_mappings may "chain" to inbuilt CONTEXT's */ int get_custom_action(int context,int timeout, - struct button_mapping* (*get_context_map)(int)); + const struct button_mapping* (*get_context_map)(int)); /* use if one of the standard CONTEXT_ mappings will work (ALL the core should be using this! */ int get_action(int context, int timeout); /* call this whenever you leave your button loop */ @@ -160,6 +160,6 @@ bool action_userabort(int timeout); void action_setsoftwarekeylock(int unlock_action, bool allow_remote); /* no other code should need this apart from action.c */ -struct button_mapping* get_context_mapping(int context); +const struct button_mapping* get_context_mapping(int context); #endif -- cgit v1.2.3