1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
William Wilgus 2022-02-23 21:26:37 -05:00
parent f7bb9e2167
commit 295ec3790d
5 changed files with 81 additions and 10 deletions

View file

@ -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 */