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
|
@ -32,6 +32,9 @@
|
|||
#define CONTEXT_CUSTOM 0x40000000 /* | this against anything to get your context number */
|
||||
#define CONTEXT_CUSTOM2 0x20000000 /* as above */
|
||||
#define CONTEXT_PLUGIN 0x10000000 /* for plugins using get_custom_action */
|
||||
#ifdef HAVE_LOCKED_ACTIONS
|
||||
#define CONTEXT_LOCKED 0x04000000 /* flag to use alternate keymap when screen is locked */
|
||||
#endif
|
||||
|
||||
#define LAST_ITEM_IN_LIST { CONTEXT_STOPSEARCHING, BUTTON_NONE, BUTTON_NONE }
|
||||
#define LAST_ITEM_IN_LIST__NEXTLIST(a) { a, BUTTON_NONE, BUTTON_NONE }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue