aboutsummaryrefslogtreecommitdiff
path: root/quantum/process_keycode/process_combo.h
diff options
context:
space:
mode:
authorskullY <skullydazed@gmail.com>2019-08-30 11:19:03 -0700
committerskullydazed <skullydazed@users.noreply.github.com>2019-08-30 15:01:52 -0700
commitb624f32f944acdc59dcb130674c09090c5c404cb (patch)
treebc13adbba137d122d9a2c2fb2fafcbb08ac10e25 /quantum/process_keycode/process_combo.h
parent61af76a10d00aba185b8338604171de490a13e3b (diff)
downloadqmk_firmware-b624f32f944acdc59dcb130674c09090c5c404cb.tar.gz
qmk_firmware-b624f32f944acdc59dcb130674c09090c5c404cb.zip
clang-format changes
Diffstat (limited to 'quantum/process_keycode/process_combo.h')
-rw-r--r--quantum/process_keycode/process_combo.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/quantum/process_keycode/process_combo.h b/quantum/process_keycode/process_combo.h
index aab284957..e21ee1960 100644
--- a/quantum/process_keycode/process_combo.h
+++ b/quantum/process_keycode/process_combo.h
@@ -22,36 +22,36 @@
22#include <stdint.h> 22#include <stdint.h>
23 23
24#ifdef EXTRA_EXTRA_LONG_COMBOS 24#ifdef EXTRA_EXTRA_LONG_COMBOS
25#define MAX_COMBO_LENGTH 32 25# define MAX_COMBO_LENGTH 32
26#elif EXTRA_LONG_COMBOS 26#elif EXTRA_LONG_COMBOS
27#define MAX_COMBO_LENGTH 16 27# define MAX_COMBO_LENGTH 16
28#else 28#else
29#define MAX_COMBO_LENGTH 8 29# define MAX_COMBO_LENGTH 8
30#endif 30#endif
31 31
32typedef struct { 32typedef struct {
33 const uint16_t *keys; 33 const uint16_t *keys;
34 uint16_t keycode; 34 uint16_t keycode;
35#ifdef EXTRA_EXTRA_LONG_COMBOS 35#ifdef EXTRA_EXTRA_LONG_COMBOS
36 uint32_t state; 36 uint32_t state;
37#elif EXTRA_LONG_COMBOS 37#elif EXTRA_LONG_COMBOS
38 uint16_t state; 38 uint16_t state;
39#else 39#else
40 uint8_t state; 40 uint8_t state;
41#endif 41#endif
42} combo_t; 42} combo_t;
43 43
44#define COMBO(ck, ca) \ 44#define COMBO(ck, ca) \
45 { .keys = &(ck)[0], .keycode = (ca) } 45 { .keys = &(ck)[0], .keycode = (ca) }
46#define COMBO_ACTION(ck) \ 46#define COMBO_ACTION(ck) \
47 { .keys = &(ck)[0] } 47 { .keys = &(ck)[0] }
48 48
49#define COMBO_END 0 49#define COMBO_END 0
50#ifndef COMBO_COUNT 50#ifndef COMBO_COUNT
51#define COMBO_COUNT 0 51# define COMBO_COUNT 0
52#endif 52#endif
53#ifndef COMBO_TERM 53#ifndef COMBO_TERM
54#define COMBO_TERM TAPPING_TERM 54# define COMBO_TERM TAPPING_TERM
55#endif 55#endif
56 56
57bool process_combo(uint16_t keycode, keyrecord_t *record); 57bool process_combo(uint16_t keycode, keyrecord_t *record);