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.

52 lines
1.5 KiB

  1. /* Copyright 2022 @ Keychron (https://www.keychron.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 <stdint.h>
  18. #include <stdbool.h>
  19. #include "action.h"
  20. #ifdef VIA_ENABLE
  21. # include "via.h"
  22. #endif
  23. #include "quantum_keycodes.h"
  24. enum custom_keycodes {
  25. KC_LOPTN = QK_KB_2, // TECH DEBT: Starts at QK_KB_2 to maintain ordering with VIA definitions. See #19884. Revert to QK_KB_0 when VIA catches up with QMK.
  26. KC_ROPTN,
  27. KC_LCMMD,
  28. KC_RCMMD,
  29. KC_SIRI,
  30. KC_TASK_VIEW,
  31. KC_FILE_EXPLORER,
  32. KC_SCREEN_SHOT,
  33. KC_CORTANA
  34. };
  35. #define KC_TASK KC_TASK_VIEW
  36. #define KC_FLXP KC_FILE_EXPLORER
  37. #define KC_SNAP KC_SCREEN_SHOT
  38. #define KC_CRTA KC_CORTANA
  39. typedef struct PACKED {
  40. uint8_t len;
  41. uint8_t keycode[3];
  42. } key_combination_t;
  43. void housekeeping_task_keychron(void);
  44. bool process_record_keychron(uint16_t keycode, keyrecord_t *record);