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 |
||
---|---|---|
.. | ||
action_helper.c | ||
action_helper.h | ||
action_helper.pl | ||
arg_helper.c | ||
arg_helper.h | ||
bmp_smooth_scale.c | ||
button_helper.c | ||
button_helper.h | ||
button_helper.pl | ||
checkbox.c | ||
checkbox.h | ||
configfile.c | ||
configfile.h | ||
display_text.c | ||
display_text.h | ||
feature_wrappers.h | ||
gcc-support.c | ||
grey.h | ||
grey_coldfire.S | ||
grey_core.c | ||
grey_draw.c | ||
grey_parm.c | ||
grey_scroll.c | ||
helper.c | ||
helper.h | ||
highscore.c | ||
highscore.h | ||
icon_helper.c | ||
icon_helper.h | ||
jhash.c | ||
jhash.h | ||
jpeg_mem.h | ||
kbd_helper.c | ||
kbd_helper.h | ||
keymaps.h | ||
md5.c | ||
md5.h | ||
mylcd.h | ||
osd.c | ||
osd.h | ||
overlay.c | ||
overlay.h | ||
picture.c | ||
picture.h | ||
playback_control.c | ||
playback_control.h | ||
pluginlib_actions.c | ||
pluginlib_actions.h | ||
pluginlib_albumart.c | ||
pluginlib_bmp.c | ||
pluginlib_bmp.h | ||
pluginlib_exit.h | ||
pluginlib_jpeg_idct_arm.S | ||
pluginlib_jpeg_load.c | ||
pluginlib_jpeg_mem.c | ||
pluginlib_resize.c | ||
pluginlib_touchscreen.c | ||
pluginlib_touchscreen.h | ||
printcell_helper.c | ||
printcell_helper.h | ||
profile_plugin.c | ||
profile_plugin.h | ||
read_image.c | ||
read_image.h | ||
rgb_hsv.c | ||
rgb_hsv.h | ||
sha1.c | ||
sha1.h | ||
simple_viewer.c | ||
simple_viewer.h | ||
SOURCES | ||
stdio_compat.c | ||
stdio_compat.h | ||
strncpy.c | ||
wrappers.h | ||
xlcd.h | ||
xlcd_core.c | ||
xlcd_draw.c | ||
xlcd_scroll.c |