[Feature/Bugfix] keyremap add Context flags

Add context flags to keyremap
CONTEXT_LOCKED
CONTEXT_REMOTE
CONTEXT_REMOTE_LOCKED

--CONTEXT_PLUGIN-- Removed -- Plugins need a custom action list
supplied and a method of supplying them

Change-Id: I5201d275ad0ab6130c2d05d5afb0c450f5c1746c
This commit is contained in:
William Wilgus 2022-12-31 12:18:02 -05:00 committed by William Wilgus
parent 0330aa8eb2
commit 6ebec601f9
7 changed files with 104 additions and 18 deletions

View file

@ -605,12 +605,10 @@ static inline void action_code_lookup(action_last_t *last, action_cur_t *cur)
/* attempt to look up the button in user supplied remap */
if(last->key_remap && (context & CONTEXT_PLUGIN) == 0)
{
#if 0 /*Disable the REMOTE context for remap for now (BUTTON_REMOTE != 0)*/
if ((cur->button & BUTTON_REMOTE) != 0)
{
context |= CONTEXT_REMOTE;
}
#endif
cur->items = core_get_data(last->key_remap);
i = 0;
action = ACTION_UNKNOWN;