mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Allow alternative keymap when keys are locked
To enable support targets must define HAVE_LOCKED_ACTIONS and then handle the CONTEXT_LOCKED flag from get_context_mapping(). Change-Id: I92703b534e4a45b4ebbf9bf98af42df9b8ac3b1a
This commit is contained in:
parent
00b4626790
commit
a2bac25a63
2 changed files with 10 additions and 0 deletions
|
@ -586,6 +586,13 @@ static inline void action_code_lookup(action_last_t *last, action_cur_t *cur)
|
|||
|
||||
cur->is_prebutton = false;
|
||||
|
||||
#ifdef HAVE_LOCKED_ACTIONS
|
||||
/* This only applies to the first context, to allow locked contexts to
|
||||
* specify a fall through to their non-locked version */
|
||||
if (is_keys_locked())
|
||||
context |= CONTEXT_LOCKED;
|
||||
#endif
|
||||
|
||||
for(;;)
|
||||
{
|
||||
/* logf("context = %x",context); */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue