f7bb9e2167
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 |
||
---|---|---|
.. | ||
include_lua | ||
action_helper.pl | ||
button_helper.pl | ||
lapi.c | ||
lapi.h | ||
lauxlib.c | ||
lauxlib.h | ||
lbaselib.c | ||
lbitlib.c | ||
lcode.c | ||
lcode.h | ||
ldebug.c | ||
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 | ||
lmem.c | ||
lmem.h | ||
loadlib.c | ||
lobject.c | ||
lobject.h | ||
lopcodes.c | ||
lopcodes.h | ||
loslib.c | ||
lparser.c | ||
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_user.c | ||
lua_user.h | ||
luaconf.h | ||
luadir.c | ||
luadir.h | ||
lualib.h | ||
lundump.c | ||
lundump.h | ||
lvm.c | ||
lvm.h | ||
lzio.c | ||
lzio.h | ||
Makefile | ||
rbdefines_helper.pl | ||
README | ||
rockaux.c | ||
rockconf.h | ||
rocklib.c | ||
rocklib.h | ||
rocklib_aux.pl | ||
rocklib_events.c | ||
rocklib_events.h | ||
rocklib_img.c | ||
rocklib_img.h | ||
rocklibc.h | ||
rocklua.c | ||
settings_helper.pl | ||
SOURCES | ||
strftime.c | ||
strpbrk.c | ||
strstr.c | ||
strtol.c | ||
strtoul.c | ||
tlsf_helper.c |
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