process_combo.h 382 B

12345678910111213141516171819202122232425
  1. #ifndef PROCESS_COMBO_H
  2. #define PROCESS_COMBO_H
  3. #include <stdint.h>
  4. #include "progmem.h"
  5. #include "quantum.h"
  6. typedef struct
  7. {
  8. const uint16_t *keys;
  9. uint16_t action;
  10. uint32_t state;
  11. } combo_t;
  12. #define COMBO_END 0
  13. #define NUM_ELEMS(a) (sizeof(a)/sizeof 0[a])
  14. extern combo_t key_combos[1];
  15. bool process_combo(uint16_t keycode, keyrecord_t *record);
  16. #endif