summaryrefslogtreecommitdiff
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 @@
24#include <stdbool.h> 24#include <stdbool.h>
25#include <inttypes.h> 25#include <inttypes.h>
26#include "config.h" 26#include "config.h"
27#include "action.h"
27#define KEYREMAP_VERSION 1 28#define KEYREMAP_VERSION 1
28#define KEYREMAP_HEADERID (LAST_ACTION_PLACEHOLDER | (TARGET_ID << 8)) 29#define KEYREMAP_HEADERID (LAST_ACTION_PLACEHOLDER | (TARGET_ID << 8))
29 30
30/* If exists remap file will be loaded at startup */ 31/* If exists remap file will be loaded at startup */
31#define CORE_KEYREMAP_FILE ROCKBOX_DIR "/keyremap.kmf" 32#define CORE_KEYREMAP_FILE ROCKBOX_DIR "/keyremap.kmf"
32 33
34/* Allocates core buffer, copies keymap to allow buttons for actions to be remapped*/
35int core_set_keyremap(struct button_mapping* core_keymap, int count);
36
33/* open_key_remap(filename , *fd (you must close file_descriptor), *fsize) 37/* open_key_remap(filename , *fd (you must close file_descriptor), *fsize)
34 * checks/strips header and returns remaining count 38 * checks/strips header and returns remaining count
35 * fd is opened and set to first record 39 * fd is opened and set to first record