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.

42 lines
1.6 KiB

  1. /* Copyright 2021 hvp
  2. *
  3. * This program is free software: you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation, either version 2 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. // #include per_key.h
  17. uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) {
  18. switch (keycode) {
  19. case MT(MOD_LGUI, KC_A):
  20. return TAPPING_TERM + LONG_TAPPING_TERM;
  21. case MT(MOD_LALT, KC_S):
  22. return TAPPING_TERM + LONG_TAPPING_TERM;
  23. case MT(MOD_LSFT, KC_D):
  24. return TAPPING_TERM + LONG_TAPPING_TERM;
  25. case MT(MOD_LCTL, KC_F):
  26. return TAPPING_TERM + LONG_TAPPING_TERM;
  27. case MT(MOD_RCTL, KC_H):
  28. return TAPPING_TERM + LONG_TAPPING_TERM;
  29. case MT(MOD_RSFT, KC_J):
  30. return TAPPING_TERM + LONG_TAPPING_TERM;
  31. case MT(MOD_RALT, KC_K):
  32. return TAPPING_TERM + LONG_TAPPING_TERM;
  33. case MT(MOD_RGUI, KC_L):
  34. return TAPPING_TERM + LONG_TAPPING_TERM;
  35. case KC_LCPO:
  36. return TAPPING_TERM 75;
  37. default:
  38. return TAPPING_TERM;
  39. }
  40. }