You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
559 B

[Keymap] Update to userspace kuchosauroand0 (#6596) * added combos * minor adjustments, added combos * Add second encoder, add modifiers to encoders Added a skeleton for the possibily having a second encoder. Added 9 modifiers for the first rotary encoder: - None General navigation. Page up/down - SHIFT Fast navigation. Home/end - CTRL Vertical navigation. Up/down - CTRL+SHIFT Horizontal navigation. Left/right - ALT Audio volume control. - GUI Browser navigation(windows). Forward/backward - ALT+SHIFT Form navigation. Tab up/down - ALT+CTRL Media control. (Play|pause)/mute - HYPER Media navigation. Next/prev track Key codes are stored in `uint16_t encoder_actions[2][9]` * Add second encoder, add modifiers to encoders Added a skeleton for the possibily having a second encoder. Added 9 modifiers for the first rotary encoder: - None General navigation. Page up/down - SHIFT Fast navigation. Home/end - CTRL Vertical navigation. Up/down - CTRL+SHIFT Horizontal navigation. Left/right - ALT Audio volume control. - GUI Browser navigation(windows). Forward/backward - ALT+SHIFT Form navigation. Tab up/down - ALT+CTRL Media control. (Play|pause)/mute - HYPER Media navigation. Next/prev track Key codes are stored in `uint16_t encoder_actions[2][9]` * Clean up; added combos Combos: - CV: Copy - XC: Cut - ZV: Paste - QP: KC_SLEEP * Fix LEADER_DICTIONARY to be more useful * Add documentation * Minor fixes * Raise TAPPING_TERM * testing * Rearrange modifiers * Fix kc being stored in uint8 instead of uint16 * Update documentation * Clean up * Remove excess comments * Put encoder_actions in progmem
4 years ago
  1. #pragma once
  2. #include "quantum.h"
  3. enum combo_events {
  4. ZV_COPY,
  5. XV_CUT,
  6. CV_PASTE,
  7. QP_SLEEP
  8. };
  9. const uint16_t PROGMEM copy_combo[] = {KC_Z, KC_V, COMBO_END};
  10. const uint16_t PROGMEM cut_combo[] = {KC_X, KC_V, COMBO_END};
  11. const uint16_t PROGMEM paste_combo[] = {KC_C, KC_V, COMBO_END};
  12. const uint16_t PROGMEM sleep_combo[] = {KC_Q, KC_P, COMBO_END};
  13. combo_t key_combos[COMBO_COUNT] = {
  14. [ZV_COPY] = COMBO_ACTION(copy_combo),
  15. [XV_CUT] = COMBO_ACTION(cut_combo),
  16. [CV_PASTE] = COMBO_ACTION(paste_combo),
  17. [QP_SLEEP] = COMBO_ACTION(sleep_combo),
  18. };