aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/keymap_common.c
diff options
context:
space:
mode:
authorGravatar Joe Wasson <jwasson+github@gmail.com>2018-03-11 16:53:35 -0700
committerGravatar Jack Humbert <jack.humb@gmail.com>2018-03-16 16:33:43 -0400
commit23ac2a02ef870dce91318a4d98e3c8ec5749bced (patch)
tree302f61696ce319d635c17e919ec6d8acf264d2ab /quantum/keymap_common.c
parent7230923b051bdb32bea19c3d732fa1fbc4883a68 (diff)
downloadqmk_firmware-23ac2a02ef870dce91318a4d98e3c8ec5749bced.tar.gz
Add keycodes for swap-hands feature.
Diffstat (limited to 'quantum/keymap_common.c')
-rw-r--r--quantum/keymap_common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/quantum/keymap_common.c b/quantum/keymap_common.c
index a0d4c1ddb..8b09f93fc 100644
--- a/quantum/keymap_common.c
+++ b/quantum/keymap_common.c
@@ -146,6 +146,12 @@ action_t action_for_key(uint8_t layer, keypos_t key)
action.code = ACTION_BACKLIGHT_STEP();
break;
#endif
+ #ifdef SWAP_HANDS_ENABLE
+ case QK_SWAP_HANDS ... QK_SWAP_HANDS_MAX:
+ action.code = ACTION(ACT_SWAP_HANDS, keycode & 0xff);
+ break;
+ #endif
+
default:
action.code = ACTION_NO;
break;