summaryrefslogtreecommitdiff
path: root/quantum/keymap_common.h
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2023-03-03 11:26:53 +0000
committerGitHub <noreply@github.com>2023-03-03 11:26:53 +0000
commitc3c40dfda89d3d10bef90e08bf0600d1f4b1cd0e (patch)
treeaf56ac135031e01b1e657dbd35dc0dbf59d72bab /quantum/keymap_common.h
parent6676cc194228421a63b4d5922785b086bce8a46b (diff)
Remove some use of keymap.h (#19980)
Diffstat (limited to 'quantum/keymap_common.h')
-rw-r--r--quantum/keymap_common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/quantum/keymap_common.h b/quantum/keymap_common.h
new file mode 100644
index 0000000000..24fe9af6fe
--- /dev/null
+++ b/quantum/keymap_common.h
@@ -0,0 +1,7 @@
+// Copyright 2023 QMK
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+// translates key to keycode
+uint16_t keymap_key_to_keycode(uint8_t layer, keypos_t key);