aboutsummaryrefslogtreecommitdiff
path: root/users/bocaj/bocaj.h
diff options
context:
space:
mode:
Diffstat (limited to 'users/bocaj/bocaj.h')
-rw-r--r--users/bocaj/bocaj.h73
1 files changed, 0 insertions, 73 deletions
diff --git a/users/bocaj/bocaj.h b/users/bocaj/bocaj.h
deleted file mode 100644
index e69be74da..000000000
--- a/users/bocaj/bocaj.h
+++ /dev/null
@@ -1,73 +0,0 @@
1/*
2Copyright 2017 Christopher Courtney <drashna@live.com> @drashna
3Copyright 2020 Jacob Jerrell <jacob.jerrell@gmail.com> @JacobJerrell
4
5This program is free software: you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation, either version 2 of the License, or
8(at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#pragma once
20#include QMK_KEYBOARD_H
21
22#include "version.h"
23#include "eeprom.h"
24#include "process_records.h"
25#include "wrappers.h"
26#if defined(RGB_MATRIX_ENABLE)
27# include "rgb_matrix_stuff.h"
28#endif
29
30/* Define layer names */
31enum userspace_layers {
32 _WORKMAN = 0,
33 _QWERTY,
34 _WWORKMAN,
35 _WQWERTY,
36 _LOWER,
37 _RAISE,
38 _ADJUST,
39 _MOD,
40 LAYER_SAFE_RANGE,
41};
42
43#define MODS_SHIFT_MASK (MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT))
44#define MODS_CTRL_MASK (MOD_BIT(KC_LCTL)|MOD_BIT(KC_RCTRL))
45#define MODS_ALT_MASK (MOD_BIT(KC_LALT)|MOD_BIT(KC_RALT))
46#define MODS_GUI_MASK (MOD_BIT(KC_LGUI)|MOD_BIT(KC_RGUI))
47
48bool mod_key_press_timer(uint16_t code, uint16_t mod_code, bool pressed);
49bool mod_key_press(uint16_t code, uint16_t mod_code, bool pressed, uint16_t this_timer);
50void matrix_init_keymap(void);
51void shutdown_keymap(void);
52void suspend_power_down_keymap(void);
53void suspend_wakeup_init_keymap(void);
54void matrix_scan_keymap(void);
55layer_state_t layer_state_set_keymap(layer_state_t state);
56layer_state_t default_layer_state_set_keymap(layer_state_t state);
57void led_set_keymap(uint8_t usb_led);
58void eeconfig_init_keymap(void);
59bool hasAllBitsInMask(uint8_t value, uint8_t mask);
60
61// clang-format off
62#ifdef KEYBOARD_planck_ez
63typedef union {
64 uint32_t raw;
65 struct {
66 bool rgb_layer_change :1;
67 bool rgb_matrix_idle_anim :1;
68 };
69} userspace_config_t;
70// clang-format on
71
72extern userspace_config_t userspace_config;
73#endif