summaryrefslogtreecommitdiff
path: root/common/keymap.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-02-13 13:31:01 +0900
committertmk <nobody@nowhere>2013-02-13 13:31:01 +0900
commit7a31451a077a55e1ad97cf8b31a111c7cd311a4d (patch)
tree335730a0308cdb2e2ec094fe08ac63ee29ce4f80 /common/keymap.c
parent7054203e16af627a921b503a9508ce789913471d (diff)
parentc4421f585b085d3eef5e468ff1defcbc3b4ec8d3 (diff)
downloadqmk_firmware-7a31451a077a55e1ad97cf8b31a111c7cd311a4d.tar.gz
qmk_firmware-7a31451a077a55e1ad97cf8b31a111c7cd311a4d.zip
Merge branch 'actionfix'
Diffstat (limited to 'common/keymap.c')
-rw-r--r--common/keymap.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/common/keymap.c b/common/keymap.c
index 2782ea9d60..078615814e 100644
--- a/common/keymap.c
+++ b/common/keymap.c
@@ -20,11 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "action.h"
-/* layer */
-uint8_t default_layer = 0;
-uint8_t current_layer = 0;
-
-
action_t keymap_keycode_to_action(uint8_t keycode)
{
action_t action;
@@ -60,10 +55,10 @@ action_t keymap_keycode_to_action(uint8_t keycode)
#ifndef NO_LEGACY_KEYMAP_SUPPORT
/* legacy support with weak reference */
__attribute__ ((weak))
-action_t keymap_get_action(uint8_t layer, uint8_t row, uint8_t col)
+action_t action_for_key(uint8_t layer, key_t key)
{
/* convert from legacy keycode to action */
- uint8_t keycode = keymap_get_keycode(layer, row, col);
+ uint8_t keycode = keymap_get_keycode(layer, key.row, key.col);
action_t action;
switch (keycode) {
case KC_FN0 ... KC_FN31:
@@ -84,6 +79,6 @@ action_t keymap_get_action(uint8_t layer, uint8_t row, uint8_t col)
#endif
__attribute__ ((weak))
-void keymap_call_function(keyrecord_t *event, uint8_t id, uint8_t opt)
+void action_function(keyrecord_t *event, uint8_t id, uint8_t opt)
{
}