config.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. Copyright 2012 Jun Wako <wakojun@gmail.com>
  3. Copyright 2013 Oleg Kostyuk <cub.uanic@gmail.com>
  4. Copyright 2017 Erin Call <hello@erincall.com>
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  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. #ifndef DACTYL_CONFIG_H
  17. #define DACTYL_CONFIG_H
  18. #include "config_common.h"
  19. /* USB Device descriptor parameter */
  20. #define VENDOR_ID 0xFEED
  21. #define PRODUCT_ID 0x1308
  22. #define DEVICE_VER 0x0001
  23. #define MANUFACTURER Adereth
  24. #define PRODUCT Dactyl
  25. #define DESCRIPTION An ortholinear, split, 3D-curved keyboard with thumb clusters.
  26. /* key matrix size
  27. * At this time, "row" in the dactyl's code actually means "column" on the
  28. * physical keyboard. It's confusing. I'm sorry. Blame Jack Humbert :P
  29. */
  30. #define MATRIX_ROWS 12
  31. #define MATRIX_COLS 6
  32. #define MOUSEKEY_INTERVAL 20
  33. #define MOUSEKEY_DELAY 0
  34. #define MOUSEKEY_TIME_TO_MAX 60
  35. #define MOUSEKEY_MAX_SPEED 7
  36. #define MOUSEKEY_WHEEL_DELAY 0
  37. #define TAPPING_TOGGLE 1
  38. #define TAPPING_TERM 200
  39. #define IGNORE_MOD_TAP_INTERRUPT // this makes it possible to do rolling combos (zx) with keys that convert to other keys on hold (z becomes ctrl when you hold it, and when this option isn't enabled, z rapidly followed by x actually sends Ctrl-x. That's bad.)
  40. /* key combination for command */
  41. #define IS_COMMAND() ( \
  42. keyboard_report->mods == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
  43. keyboard_report->mods == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \
  44. )
  45. /* fix space cadet rollover issue */
  46. #define DISABLE_SPACE_CADET_ROLLOVER
  47. /* Set 0 if debouncing isn't needed */
  48. #define DEBOUNCE 15
  49. #define PREVENT_STUCK_MODIFIERS
  50. #define USB_MAX_POWER_CONSUMPTION 500
  51. #endif