diff options
Diffstat (limited to 'users/drashna/drashna.h')
| -rw-r--r-- | users/drashna/drashna.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/users/drashna/drashna.h b/users/drashna/drashna.h index 3efef5704..dd0d1c0d7 100644 --- a/users/drashna/drashna.h +++ b/users/drashna/drashna.h | |||
| @@ -15,11 +15,13 @@ You should have received a copy of the GNU General Public License | |||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ | 16 | */ |
| 17 | 17 | ||
| 18 | #ifndef USERSPACE | 18 | #pragma once |
| 19 | #define USERSPACE | ||
| 20 | #include "quantum.h" | 19 | #include "quantum.h" |
| 21 | 20 | #include "version.h" | |
| 22 | 21 | #include "eeprom.h" | |
| 22 | #ifdef RGB_MATRIX_ENABLE | ||
| 23 | #include "rgb_matrix.h" | ||
| 24 | #endif | ||
| 23 | // Define layer names | 25 | // Define layer names |
| 24 | enum userspace_layers { | 26 | enum userspace_layers { |
| 25 | _QWERTY = 0, | 27 | _QWERTY = 0, |
| @@ -53,7 +55,7 @@ extern bool clicky_enable; | |||
| 53 | void rgblight_sethsv_default_helper(uint8_t index); | 55 | void rgblight_sethsv_default_helper(uint8_t index); |
| 54 | #endif // RGBLIGHT_ENABLE | 56 | #endif // RGBLIGHT_ENABLE |
| 55 | 57 | ||
| 56 | void tap(uint16_t keycode); | 58 | inline void tap(uint16_t keycode){ register_code(keycode); unregister_code(keycode); }; |
| 57 | bool mod_key_press_timer (uint16_t code, uint16_t mod_code, bool pressed); | 59 | bool mod_key_press_timer (uint16_t code, uint16_t mod_code, bool pressed); |
| 58 | bool mod_key_press (uint16_t code, uint16_t mod_code, bool pressed, uint16_t this_timer); | 60 | bool mod_key_press (uint16_t code, uint16_t mod_code, bool pressed, uint16_t this_timer); |
| 59 | 61 | ||
| @@ -90,7 +92,6 @@ enum userspace_custom_keycodes { | |||
| 90 | KC_C9, | 92 | KC_C9, |
| 91 | KC_GGEZ, | 93 | KC_GGEZ, |
| 92 | KC_MAKE, // Run keyboard's customized make command | 94 | KC_MAKE, // Run keyboard's customized make command |
| 93 | KC_RESET, // Resets keyboard, with red underglow | ||
| 94 | KC_RGB_T, // Toggles RGB Layer Indication mode | 95 | KC_RGB_T, // Toggles RGB Layer Indication mode |
| 95 | KC_SECRET_1, // test1 | 96 | KC_SECRET_1, // test1 |
| 96 | KC_SECRET_2, // test2 | 97 | KC_SECRET_2, // test2 |
| @@ -123,6 +124,7 @@ enum userspace_custom_keycodes { | |||
| 123 | #define COLEMAK KC_COLEMAK | 124 | #define COLEMAK KC_COLEMAK |
| 124 | #define WORKMAN KC_WORKMAN | 125 | #define WORKMAN KC_WORKMAN |
| 125 | 126 | ||
| 127 | #define KC_RESET RESET | ||
| 126 | #define KC_RST KC_RESET | 128 | #define KC_RST KC_RESET |
| 127 | 129 | ||
| 128 | #ifdef SWAP_HANDS_ENABLE | 130 | #ifdef SWAP_HANDS_ENABLE |
| @@ -131,6 +133,11 @@ enum userspace_custom_keycodes { | |||
| 131 | #define KC_C1R3 KC_BSPC | 133 | #define KC_C1R3 KC_BSPC |
| 132 | #endif // SWAP_HANDS_ENABLE | 134 | #endif // SWAP_HANDS_ENABLE |
| 133 | 135 | ||
| 136 | #define BK_LWER LT(_LOWER, KC_BSPC) | ||
| 137 | #define SP_LWER LT(_LOWER, KC_SPC) | ||
| 138 | #define DL_RAIS LT(_RAISE, KC_DEL) | ||
| 139 | #define ET_RAIS LT(_RAISE, KC_ENTER) | ||
| 140 | |||
| 134 | // OSM keycodes, to keep things clean and easy to change | 141 | // OSM keycodes, to keep things clean and easy to change |
| 135 | #define KC_MLSF OSM(MOD_LSFT) | 142 | #define KC_MLSF OSM(MOD_LSFT) |
| 136 | #define KC_MRSF OSM(MOD_RSFT) | 143 | #define KC_MRSF OSM(MOD_RSFT) |
| @@ -325,7 +332,7 @@ enum { | |||
| 325 | 332 | ||
| 326 | 333 | ||
| 327 | #define _________________ADJUST_L1_________________ RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, RGB_TOG | 334 | #define _________________ADJUST_L1_________________ RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, RGB_TOG |
| 328 | #define _________________ADJUST_L2_________________ _______, CK_TOGG, AU_ON, AU_OFF, AG_NORM | 335 | #define _________________ADJUST_L2_________________ MU_TOG , CK_TOGG, AU_ON, AU_OFF, AG_NORM |
| 329 | #define _________________ADJUST_L3_________________ RGB_RMOD,RGB_HUD,RGB_SAD, RGB_VAD, KC_RGB_T | 336 | #define _________________ADJUST_L3_________________ RGB_RMOD,RGB_HUD,RGB_SAD, RGB_VAD, KC_RGB_T |
| 330 | 337 | ||
| 331 | #define _________________ADJUST_R1_________________ KC_SEC1, KC_SEC2, KC_SEC3, KC_SEC4, KC_SEC5 | 338 | #define _________________ADJUST_R1_________________ KC_SEC1, KC_SEC2, KC_SEC3, KC_SEC4, KC_SEC5 |
| @@ -350,4 +357,3 @@ enum { | |||
| 350 | LT(_LOWER, KC_SPACE),KC_BSPC, KC_END, KC_PGDN, KC_DEL, LT(_RAISE, KC_ENTER) | 357 | LT(_LOWER, KC_SPACE),KC_BSPC, KC_END, KC_PGDN, KC_DEL, LT(_RAISE, KC_ENTER) |
| 351 | 358 | ||
| 352 | 359 | ||
| 353 | #endif // !USERSPACE | ||
