aboutsummaryrefslogtreecommitdiff
path: root/keyboards/3w6/keymaps/helltm/combos.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/3w6/keymaps/helltm/combos.h')
-rw-r--r--keyboards/3w6/keymaps/helltm/combos.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/keyboards/3w6/keymaps/helltm/combos.h b/keyboards/3w6/keymaps/helltm/combos.h
new file mode 100644
index 000000000..85f44cd0d
--- /dev/null
+++ b/keyboards/3w6/keymaps/helltm/combos.h
@@ -0,0 +1,35 @@
1/* Copyright 2021 HellSingCoder
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
17#pragma once
18
19#define CB(name, action, ...) C_##name,
20enum user_combos {
21#include "combos.def"
22 COMBO_LENGTH
23};
24#undef CB
25uint16_t COMBO_LEN = COMBO_LENGTH;
26
27#define CB(name, action, ...) const uint16_t PROGMEM name##_combo[] = {__VA_ARGS__, COMBO_END};
28#include "combos.def"
29#undef CB
30
31combo_t key_combos[COMBO_LENGTH] = {
32#define CB(name, action, ...) COMBO(name##_combo, action),
33#include "combos.def"
34#undef CB
35};