tap_dances.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
  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. #pragma once
  17. #include "drashna.h"
  18. // define diablo macro timer variables
  19. extern uint8_t diablo_times[];
  20. typedef struct {
  21. uint16_t timer;
  22. uint8_t key_interval;
  23. uint8_t keycode;
  24. } diablo_timer_t;
  25. typedef struct {
  26. uint8_t index;
  27. uint8_t keycode;
  28. } diable_keys_t;
  29. extern diablo_timer_t diablo_timer[];
  30. void run_diablo_macro_check(void);
  31. #ifdef TAP_DANCE_ENABLE
  32. enum {
  33. TD_D3_1 = 0,
  34. TD_D3_2,
  35. TD_D3_3,
  36. TD_D3_4,
  37. };
  38. #endif // TAP_DANCE_ENABLE