aboutsummaryrefslogtreecommitdiff
path: root/users/konstantin/konstantin.h
diff options
context:
space:
mode:
Diffstat (limited to 'users/konstantin/konstantin.h')
-rw-r--r--users/konstantin/konstantin.h42
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
59enum keycodes_user {
60 CLEAR = SAFE_RANGE,
61 DST_P_R,
62 DST_N_A,
63
64 RANGE_KEYMAP,
65};
66
67enum layers_user { 75enum 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
87enum keycodes_user {
88 CLEAR = SAFE_RANGE,
89 DST_P_R,
90 DST_N_A,
91
92 RANGE_KEYMAP,
93};
94
79void keyboard_pre_init_keymap(void); 95void keyboard_pre_init_keymap(void);
80void eeconfig_init_keymap(void); 96void eeconfig_init_keymap(void);
81void keyboard_post_init_keymap(void); 97void keyboard_post_init_keymap(void);
82 98
83bool process_record_keymap(uint16_t keycode, keyrecord_t *record); 99layer_state_t layer_state_set_keymap(layer_state_t state);
84uint32_t layer_state_set_keymap(uint32_t state); 100
85void led_set_keymap(uint8_t usb_led); 101void led_set_keymap(uint8_t usb_led);
86bool led_update_keymap(led_t led_state); 102bool led_update_keymap(led_t led_state);
103
104bool process_record_keymap(uint16_t keycode, keyrecord_t *record);