diff options
Diffstat (limited to 'combos.h')
-rw-r--r-- | combos.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/combos.h b/combos.h new file mode 100644 index 0000000..5979cef --- /dev/null +++ b/combos.h @@ -0,0 +1,19 @@ +#pragma once + +#include "kaleidoscope/plugin/MagicCombo.h" +#include "kaleidoscope/plugin/USB-Quirks.h" + +enum { + // Toggle between Boot (6-key rollover; for BIOSes and early boot) and NKRO + // mode. + COMBO_TOGGLE_NKRO_MODE +}; + +static void toggleKeyboardProtocol(uint8_t combo_index) { + USBQuirks.toggleKeyboardProtocol(); +} + +USE_MAGIC_COMBOS({.action = toggleKeyboardProtocol, + // Left Fn + Esc + Shift + .keys = { R3C6, R2C6, R3C7 } + }); |