]> git.donarmstrong.com Git - qmk_firmware.git/blob - quantum/process_keycode/process_combo.h
Implemented basic key combination feature
[qmk_firmware.git] / quantum / process_keycode / process_combo.h
1 #ifndef PROCESS_COMBO_H
2 #define PROCESS_COMBO_H
3
4 #include <stdint.h>
5 #include "progmem.h"
6 #include "quantum.h"
7
8
9 typedef struct
10 {
11     const uint16_t *keys;
12     uint16_t action;        
13     uint32_t state;
14 } combo_t;
15
16
17 #define COMBO_END 0
18 #define NUM_ELEMS(a) (sizeof(a)/sizeof 0[a])
19
20
21 extern combo_t key_combos[1];
22
23 bool process_combo(uint16_t keycode, keyrecord_t *record);
24
25 #endif