summaryrefslogtreecommitdiff
path: root/apps/keymaps/keymap-recorder.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-11-27 02:16:32 +0000
committerJens Arnold <amiconn@rockbox.org>2006-11-27 02:16:32 +0000
commit0e6dd7efcd21d48665b5a799fe081a75cdcb960f (patch)
tree9c0db844416a114adebb725f6172e38009b317f8 /apps/keymaps/keymap-recorder.c
parente43f56b58d8540492d83b44abfdf4c758b0e74bf (diff)
downloadrockbox-0e6dd7efcd21d48665b5a799fe081a75cdcb960f.tar.gz
rockbox-0e6dd7efcd21d48665b5a799fe081a75cdcb960f.zip
Moved archos button reading to target tree. * Cleanup of button.[ch]. * Deactivated serial remote code for recorder FM/V2 as there is no remote pin, saving ~500 bytes of code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11612 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/keymaps/keymap-recorder.c')
-rw-r--r--apps/keymaps/keymap-recorder.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/keymaps/keymap-recorder.c b/apps/keymaps/keymap-recorder.c
index cc09b90bfd..c51bde9a4b 100644
--- a/apps/keymaps/keymap-recorder.c
+++ b/apps/keymaps/keymap-recorder.c
@@ -215,6 +215,7 @@ const struct button_mapping button_context_radio[] = {
215 215
216}; 216};
217 217
218#if BUTTON_REMOTE != 0
218/***************************************************************************** 219/*****************************************************************************
219 * Remote control mappings 220 * Remote control mappings
220 *****************************************************************************/ 221 *****************************************************************************/
@@ -254,11 +255,14 @@ static const struct button_mapping* get_context_mapping_remote( int context )
254 return remote_button_context_standard; 255 return remote_button_context_standard;
255 } 256 }
256} 257}
258#endif /* BUTTON_REMOTE != 0 */
257 259
258const struct button_mapping* get_context_mapping( int context ) 260const struct button_mapping* get_context_mapping( int context )
259{ 261{
262#if BUTTON_REMOTE != 0
260 if (context&CONTEXT_REMOTE) 263 if (context&CONTEXT_REMOTE)
261 return get_context_mapping_remote(context); 264 return get_context_mapping_remote(context);
265#endif
262 266
263 switch( context ) 267 switch( context )
264 { 268 {