summaryrefslogtreecommitdiffstats
path: root/apps/core_keymap.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/core_keymap.h')
-rw-r--r--apps/core_keymap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/core_keymap.h b/apps/core_keymap.h
index 39d35e9cd9..dad9875364 100644
--- a/apps/core_keymap.h
+++ b/apps/core_keymap.h
@@ -24,12 +24,16 @@
#include <stdbool.h>
#include <inttypes.h>
#include "config.h"
+#include "action.h"
#define KEYREMAP_VERSION 1
#define KEYREMAP_HEADERID (LAST_ACTION_PLACEHOLDER | (TARGET_ID << 8))
/* If exists remap file will be loaded at startup */
#define CORE_KEYREMAP_FILE ROCKBOX_DIR "/keyremap.kmf"
+/* Allocates core buffer, copies keymap to allow buttons for actions to be remapped*/
+int core_set_keyremap(struct button_mapping* core_keymap, int count);
+
/* open_key_remap(filename , *fd (you must close file_descriptor), *fsize)
* checks/strips header and returns remaining count
* fd is opened and set to first record