diff options
Diffstat (limited to 'users/bocaj/bocaj.h')
| -rw-r--r-- | users/bocaj/bocaj.h | 73 |
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 | /* | ||
| 2 | Copyright 2017 Christopher Courtney <drashna@live.com> @drashna | ||
| 3 | Copyright 2020 Jacob Jerrell <jacob.jerrell@gmail.com> @JacobJerrell | ||
| 4 | |||
| 5 | This program is free software: you can redistribute it and/or modify | ||
| 6 | it under the terms of the GNU General Public License as published by | ||
| 7 | the Free Software Foundation, either version 2 of the License, or | ||
| 8 | (at your option) any later version. | ||
| 9 | |||
| 10 | This program is distributed in the hope that it will be useful, | ||
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | GNU General Public License for more details. | ||
| 14 | |||
| 15 | You should have received a copy of the GNU General Public License | ||
| 16 | along 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 */ | ||
| 31 | enum 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 | |||
| 48 | bool mod_key_press_timer(uint16_t code, uint16_t mod_code, bool pressed); | ||
| 49 | bool mod_key_press(uint16_t code, uint16_t mod_code, bool pressed, uint16_t this_timer); | ||
| 50 | void matrix_init_keymap(void); | ||
| 51 | void shutdown_keymap(void); | ||
| 52 | void suspend_power_down_keymap(void); | ||
| 53 | void suspend_wakeup_init_keymap(void); | ||
| 54 | void matrix_scan_keymap(void); | ||
| 55 | layer_state_t layer_state_set_keymap(layer_state_t state); | ||
| 56 | layer_state_t default_layer_state_set_keymap(layer_state_t state); | ||
| 57 | void led_set_keymap(uint8_t usb_led); | ||
| 58 | void eeconfig_init_keymap(void); | ||
| 59 | bool hasAllBitsInMask(uint8_t value, uint8_t mask); | ||
| 60 | |||
| 61 | // clang-format off | ||
| 62 | #ifdef KEYBOARD_planck_ez | ||
| 63 | typedef 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 | |||
| 72 | extern userspace_config_t userspace_config; | ||
| 73 | #endif | ||
