diff options
Diffstat (limited to 'users/konstantin/konstantin.h')
-rw-r--r-- | users/konstantin/konstantin.h | 42 |
1 files changed, 30 insertions, 12 deletions
diff --git a/users/konstantin/konstantin.h b/users/konstantin/konstantin.h index 249b3fe15..7da1dbfd2 100644 --- a/users/konstantin/konstantin.h +++ b/users/konstantin/konstantin.h | |||
@@ -1,3 +1,19 @@ | |||
1 | /* Copyright 2019-2021 Konstantin Đorđević <vomindoraan@gmail.com> | ||
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 | |||
1 | #pragma once | 17 | #pragma once |
2 | 18 | ||
3 | #include "quantum.h" | 19 | #include "quantum.h" |
@@ -56,14 +72,6 @@ | |||
56 | set_mods(mods); \ | 72 | set_mods(mods); \ |
57 | } | 73 | } |
58 | 74 | ||
59 | enum keycodes_user { | ||
60 | CLEAR = SAFE_RANGE, | ||
61 | DST_P_R, | ||
62 | DST_N_A, | ||
63 | |||
64 | RANGE_KEYMAP, | ||
65 | }; | ||
66 | |||
67 | enum layers_user { | 75 | enum layers_user { |
68 | L_BASE, | 76 | L_BASE, |
69 | #ifdef LAYER_FN | 77 | #ifdef LAYER_FN |
@@ -76,11 +84,21 @@ enum layers_user { | |||
76 | LAYERS_KEYMAP, | 84 | LAYERS_KEYMAP, |
77 | }; | 85 | }; |
78 | 86 | ||
87 | enum keycodes_user { | ||
88 | CLEAR = SAFE_RANGE, | ||
89 | DST_P_R, | ||
90 | DST_N_A, | ||
91 | |||
92 | RANGE_KEYMAP, | ||
93 | }; | ||
94 | |||
79 | void keyboard_pre_init_keymap(void); | 95 | void keyboard_pre_init_keymap(void); |
80 | void eeconfig_init_keymap(void); | 96 | void eeconfig_init_keymap(void); |
81 | void keyboard_post_init_keymap(void); | 97 | void keyboard_post_init_keymap(void); |
82 | 98 | ||
83 | bool process_record_keymap(uint16_t keycode, keyrecord_t *record); | 99 | layer_state_t layer_state_set_keymap(layer_state_t state); |
84 | uint32_t layer_state_set_keymap(uint32_t state); | 100 | |
85 | void led_set_keymap(uint8_t usb_led); | 101 | void led_set_keymap(uint8_t usb_led); |
86 | bool led_update_keymap(led_t led_state); | 102 | bool led_update_keymap(led_t led_state); |
103 | |||
104 | bool process_record_keymap(uint16_t keycode, keyrecord_t *record); | ||