Add keycodes for swap-hands feature.

This commit is contained in:
Joe Wasson
2018-03-11 16:53:35 -07:00
committed by Jack Humbert
parent 7230923b05
commit 23ac2a02ef
5 changed files with 46 additions and 18 deletions

View File

@ -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;