aboutsummaryrefslogtreecommitdiff
path: root/quantum/process_keycode/process_combo.h
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/process_keycode/process_combo.h')
-rw-r--r--quantum/process_keycode/process_combo.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/quantum/process_keycode/process_combo.h b/quantum/process_keycode/process_combo.h
new file mode 100644
index 000000000..68786c0f1
--- /dev/null
+++ b/quantum/process_keycode/process_combo.h
@@ -0,0 +1,25 @@
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
9typedef 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
21extern combo_t key_combos[1];
22
23bool process_combo(uint16_t keycode, keyrecord_t *record);
24
25#endif \ No newline at end of file