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.h | 1 + 1 file changed, 1 insertion(+) (limited to 'apps/plugin.h') diff --git a/apps/plugin.h b/apps/plugin.h index 8ade3a05ac..de1077c9b4 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -934,6 +934,7 @@ struct plugin_api { int (*battery_current)(void); void (*onplay_show_playlist_menu)(const char* path, void (*playlist_insert_cb)); void (*queue_remove_from_head)(struct event_queue *q, long id); + int (*core_set_keyremap)(struct button_mapping* core_keymap, int count); }; /* plugin header */ -- cgit v1.2.3