rockbox/apps/plugins/lua
William Wilgus f7bb9e2167 Add custom action mapping to core
results of an idea I discussed in IRC

changed the way the lookup in the remap file works..

 entries consist of 3 int [action, button, prebtn]
 context look up table is at the beginning
 action_code contains the (context | CONTEXT_REMAPPED)
 button_code contains the index of the first remapped action for the matched context
 [0] CORE_CONTEXT_REMAP(ctx1) offset1=(3), count=(1)
 [1] CORE_CONTEXT_REMAP(ctx2, offset2=(5), count=(1)
 [2] sentinel, 0, 0
 [3] act0, btn, 0
 [4] sentinel 0, 0
 [5] act1, btn, 0
 [6] sentinel, 0, 0

 Note:
 last entry of each group is always the sentinel [CONTEXT_STOPSEARCHING, BUTTON_NONE, BUTTON_NONE]
 contexts must match exactly -- re-mapped contexts run before the built in w/ fall through contexts
 ie. you can't remap std_context and expect it to match std_context actions from the WPS context.

-- Done --

Code for reading core remap entries

-- Done --

import of core remap entires from disk
-- Done --

plugin to set new key mapping (the hard part)

The plugin is started and FULLY functional
you can add actions and contexts
you can change context, action, button, prebtn
delete keymap files
load keymapfiles
save user keymaps
test keymaps before applying them
loading keymaps to core still requires restart
-----------------------------------------------------------------------------------------------

Change-Id: Ib8b88c5ae91af4d540e1829de5db32669cd68203
2022-02-23 08:47:12 -05:00
..
include_lua lua add a way to filter settings on read 2021-05-19 23:29:10 -04:00
action_helper.pl
button_helper.pl
lapi.c
lapi.h
lauxlib.c lua Fix a few potential bugs 2021-08-13 22:44:45 -04:00
lauxlib.h
lbaselib.c
lbitlib.c
lcode.c lua fix potential null warning 2021-08-03 11:02:15 +00:00
lcode.h
ldebug.c Lua extend error splash timeout and stop cutting off info 2019-09-06 20:19:42 -05:00
ldebug.h
ldo.c
ldo.h
ldump.c
lfunc.c
lfunc.h
lgc.c
lgc.h
liolib.c
llex.c
llex.h
llimits.h
lmathlib.c lua Fix a few potential bugs 2021-08-13 22:44:45 -04:00
lmem.c
lmem.h
loadlib.c lua latebound function update 2021-05-19 23:28:35 +00:00
lobject.c
lobject.h
lopcodes.c
lopcodes.h
loslib.c
lparser.c lua Fix a few potential bugs 2021-08-13 22:44:45 -04:00
lparser.h
lstate.c
lstate.h
lstring.c
lstring.h
lstrlib.c
ltable.c
ltable.h
ltablib.c
ltm.c
ltm.h
lua.h
lua.make lua fix yellow and add temploader 2021-05-03 23:13:25 -04:00
lua_user.c
lua_user.h
luaconf.h
luadir.c lua give luadir the ability to return table of attributes 2019-09-18 21:20:42 -05:00
luadir.h
lualib.h
lundump.c
lundump.h
lvm.c
lvm.h
lzio.c
lzio.h
Makefile build: Rename SHARED_LDFLAG to SHARED_LDFLAGS 2021-07-08 19:53:05 -04:00
rbdefines_helper.pl Add custom action mapping to core 2022-02-23 08:47:12 -05:00
README
rockaux.c lua rockaux.c filetol fix invalid conditional 2021-08-10 15:00:42 -04:00
rockconf.h lua Add scrollable stack traceback WIP 2020-10-03 22:09:52 +00:00
rocklib.c plugin.h & lua add playlist_insert_playlist 2021-12-05 23:10:19 -05:00
rocklib.h
rocklib_aux.pl lua move strip_extension and create_numbered_filename out of main binary 2019-09-28 03:15:15 +02:00
rocklib_events.c Hosted targets Fix timer cycle calculation overflow 2020-10-23 15:35:11 +00:00
rocklib_events.h
rocklib_img.c lua print table put_line a do_menu alternative 2021-04-20 03:30:41 +00:00
rocklib_img.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
rocklibc.h
rocklua.c lua add ability to pass PLUGIN_ ret vals with os.exit() + add defines 2021-10-21 22:28:05 -04:00
settings_helper.pl
SOURCES
strftime.c lua strftime fix out of scope buffer 2021-08-13 07:28:39 -04:00
strpbrk.c lua misc tweaks and cleanup 2020-10-04 04:00:54 -04:00
strstr.c
strtol.c lua misc tweaks and cleanup 2020-10-04 04:00:54 -04:00
strtoul.c lua misc tweaks and cleanup 2020-10-04 04:00:54 -04:00
tlsf_helper.c code cleanup encase ;; in brackets {;;} 2021-08-13 11:51:21 +00:00

The following files are (with slight modifications for Rockbox) from dietlibc
version 0.31 which is licensed under the GPL version 2:

    gmtime.c
    strftime.c
    strpbrk.c
    strtol.c
    strtoul.c
    strstr.c