rockbox/apps/plugins/lib
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
..
action_helper.c rb_info plugin and button,action+context name helper 2021-11-22 21:39:45 -05:00
action_helper.h Add custom action mapping to core 2022-02-23 08:47:12 -05:00
action_helper.pl Add custom action mapping to core 2022-02-23 08:47:12 -05:00
arg_helper.c pitchscreen make it a plugin 2021-11-10 22:38:37 -05:00
arg_helper.h pitchscreen make it a plugin 2021-11-10 22:38:37 -05:00
bmp_smooth_scale.c
button_helper.c rb_info plugin and button,action+context name helper 2021-11-22 21:39:45 -05:00
button_helper.h Add custom action mapping to core 2022-02-23 08:47:12 -05:00
button_helper.pl Add custom action mapping to core 2022-02-23 08:47:12 -05:00
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 Nuke the never-functional iriver ifp-7xx port 2021-04-26 07:42:58 -04:00
grey_draw.c
grey_parm.c
grey_scroll.c
helper.c lib/helper add talk_val() 2021-08-18 21:30:13 -04:00
helper.h lib/helper add talk_val() 2021-08-18 21:30:13 -04:00
highscore.c
highscore.h
icon_helper.c Plugin Api add core bitmaps 2021-08-26 12:55:34 +00:00
icon_helper.h Plugin Api add core bitmaps 2021-08-26 12:55:34 +00:00
jhash.c
jhash.h
jpeg_mem.h
kbd_helper.c Small fixes to kbd_create_layout 2021-07-20 21:30:55 +01:00
kbd_helper.h Small fixes to kbd_create_layout 2021-07-20 21:30:55 +01:00
keymaps.h New port: Shanling Q1 native 2021-07-13 22:01:33 +01:00
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 New port: Shanling Q1 native 2021-07-13 22:01:33 +01:00
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.c fix list item scrolling behavior 2022-01-05 10:43:55 -05:00
printcell_helper.h gui lists add callback for owner drawn items 2022-01-01 23:56:51 -05:00
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 gui lists add callback for owner drawn items 2022-01-01 23:56:51 -05:00
stdio_compat.c
stdio_compat.h
strncpy.c
wrappers.h
xlcd.h
xlcd_core.c
xlcd_draw.c
xlcd_scroll.c