From 295ec3790d191c41006d04b41db878dc1091b117 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Wed, 23 Feb 2022 21:26:37 -0500 Subject: Core Keyremap Allow setting keymap from plugin Allow setting and removing keyremap on the fly It was pretty annoying trying to work out a keyremap with a restart required to set the remap and was quite annoying when I was no longer able to navigate to the plugin or filebrowser due to setting the wrong remap now you can try out a keymap and if it doesn't work a restart will sort things out Change-Id: I848fb3bd759f9684ac2497324a371f92b7464f7b --- apps/plugin.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/plugin.c') diff --git a/apps/plugin.c b/apps/plugin.c index 8434fea07d..670770dfc6 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -46,6 +46,7 @@ #include "pathfuncs.h" #include "load_code.h" #include "file.h" +#include "core_keymap.h" #if CONFIG_CHARGING #include "power.h" @@ -807,6 +808,7 @@ static const struct plugin_api rockbox_api = { battery_current, onplay_show_playlist_menu, queue_remove_from_head, + core_set_keyremap, }; static int plugin_buffer_handle; -- cgit v1.2.3