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.

96 lines
2.7 KiB

  1. /*
  2. Copyright 2012 Jun Wako <wakojun@gmail.com>
  3. Copyright 2015 Jack Humbert
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 2 of the License, or
  7. (at your option) any later version.
  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. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. #pragma once
  16. // mouse config
  17. #ifdef MOUSEKEY_ENABLE
  18. # ifndef MOUSEKEY_MOVE_DELTA
  19. # ifndef MK_KINETIC_SPEED
  20. # define MOUSEKEY_MOVE_DELTA 5
  21. # else
  22. # define MOUSEKEY_MOVE_DELTA 25
  23. # endif
  24. # endif
  25. # ifndef MOUSEKEY_DELAY
  26. # ifndef MK_KINETIC_SPEED
  27. # define MOUSEKEY_DELAY 300
  28. # else
  29. # define MOUSEKEY_DELAY 8
  30. # endif
  31. # endif
  32. # ifndef MOUSEKEY_INTERVAL
  33. # ifndef MK_KINETIC_SPEED
  34. # define MOUSEKEY_INTERVAL 50
  35. # else
  36. # define MOUSEKEY_INTERVAL 20
  37. # endif
  38. # endif
  39. # ifndef MOUSEKEY_MAX_SPEED
  40. # define MOUSEKEY_MAX_SPEED 7
  41. # endif
  42. # ifndef MOUSEKEY_TIME_TO_MAX
  43. # define MOUSEKEY_TIME_TO_MAX 60
  44. # endif
  45. # ifndef MOUSEKEY_INITIAL_SPEED
  46. # define MOUSEKEY_INITIAL_SPEED 100
  47. # endif
  48. # ifndef MOUSEKEY_BASE_SPEED
  49. # define MOUSEKEY_BASE_SPEED 1000
  50. # endif
  51. # ifndef MOUSEKEY_DECELERATED_SPEED
  52. # define MOUSEKEY_DECELERATED_SPEED 400
  53. # endif
  54. # ifndef MOUSEKEY_ACCELERATED_SPEED
  55. # define MOUSEKEY_ACCELERATED_SPEED 3000
  56. # endif
  57. // mouse scroll config
  58. # ifndef MOUSEKEY_WHEEL_DELAY
  59. # define MOUSEKEY_WHEEL_DELAY 15
  60. # endif
  61. # ifndef MOUSEKEY_WHEEL_DELTA
  62. # define MOUSEKEY_WHEEL_DELTA 1
  63. # endif
  64. # ifndef MOUSEKEY_WHEEL_INTERVAL
  65. # define MOUSEKEY_WHEEL_INTERVAL 50
  66. # endif
  67. # ifndef MOUSEKEY_WHEEL_MAX_SPEED
  68. # define MOUSEKEY_WHEEL_MAX_SPEED 8
  69. # endif
  70. # ifndef MOUSEKEY_WHEEL_TIME_TO_MAX
  71. # define MOUSEKEY_WHEEL_TIME_TO_MAX 80
  72. # endif
  73. # ifndef MOUSEKEY_WHEEL_INITIAL_MOVEMENTS
  74. # define MOUSEKEY_WHEEL_INITIAL_MOVEMENTS 8
  75. # endif
  76. # ifndef MOUSEKEY_WHEEL_BASE_MOVEMENTS
  77. # define MOUSEKEY_WHEEL_BASE_MOVEMENTS 48
  78. # endif
  79. # ifndef MOUSEKEY_WHEEL_ACCELERATED_MOVEMENTS
  80. # define MOUSEKEY_WHEEL_ACCELERATED_MOVEMENTS 48
  81. # endif
  82. # ifndef MOUSEKEY_WHEEL_DECELERATED_MOVEMENTS
  83. # define MOUSEKEY_WHEEL_DECELERATED_MOVEMENTS 8
  84. # endif
  85. #endif
  86. #ifndef DEBOUNCE
  87. # define DEBOUNCE 5
  88. #endif