summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2022-02-23 21:26:37 -0500
committerWilliam Wilgus <wilgus.william@gmail.com>2022-02-23 21:38:27 -0500
commit295ec3790d191c41006d04b41db878dc1091b117 (patch)
treebeafe7409e2722f199abb96a657e6a52adce9ea6 /apps/plugin.c
parentf7bb9e21672566308ab837c370f27c10c154e6fc (diff)
downloadrockbox-295ec3790d191c41006d04b41db878dc1091b117.tar.gz
rockbox-295ec3790d191c41006d04b41db878dc1091b117.zip
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
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c2
1 files changed, 2 insertions, 0 deletions
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 @@
46#include "pathfuncs.h" 46#include "pathfuncs.h"
47#include "load_code.h" 47#include "load_code.h"
48#include "file.h" 48#include "file.h"
49#include "core_keymap.h"
49 50
50#if CONFIG_CHARGING 51#if CONFIG_CHARGING
51#include "power.h" 52#include "power.h"
@@ -807,6 +808,7 @@ static const struct plugin_api rockbox_api = {
807 battery_current, 808 battery_current,
808 onplay_show_playlist_menu, 809 onplay_show_playlist_menu,
809 queue_remove_from_head, 810 queue_remove_from_head,
811 core_set_keyremap,
810}; 812};
811 813
812static int plugin_buffer_handle; 814static int plugin_buffer_handle;