2019-08-16 23:54:16 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "quantum.h"
|
2020-02-04 19:17:10 +00:00
|
|
|
#include "version.h"
|
2019-08-16 23:54:16 +00:00
|
|
|
#include "process_records.h"
|
2020-02-04 19:17:10 +00:00
|
|
|
#include "wrappers.h"
|
|
|
|
#ifdef TAP_DANCE_ENABLE
|
|
|
|
# include "tapdances.h"
|
|
|
|
#endif
|
|
|
|
#if defined(UNICODEMAP_ENABLE) || defined(UNICODE_ENABLE)
|
|
|
|
# include "unicode.h"
|
|
|
|
#endif
|
2019-08-16 23:54:16 +00:00
|
|
|
|
|
|
|
enum userspace_layers
|
|
|
|
{
|
2020-02-04 19:17:10 +00:00
|
|
|
_QWERTY,
|
|
|
|
_DVORAK,
|
|
|
|
_COLEMAK,
|
|
|
|
/*
|
|
|
|
_WORKMAN et al. go here
|
|
|
|
*/
|
|
|
|
#if defined(UNICODE_ENABLE) || defined(UNICODEMAP_ENABLE)
|
|
|
|
_GREEK,
|
|
|
|
_RUSSIAN,
|
|
|
|
_RUNES,
|
|
|
|
_HIRA1,
|
|
|
|
_HIRA2,
|
|
|
|
#endif
|
2019-08-16 23:54:16 +00:00
|
|
|
_EDITOR,
|
|
|
|
_NUMBER,
|
|
|
|
_SYMBOL,
|
|
|
|
_F_KEYS,
|
|
|
|
_DEBUG,
|
|
|
|
_SECRET,
|
2020-02-04 19:17:10 +00:00
|
|
|
#if defined(MOUSEKEY_ENABLED)
|
|
|
|
_MOUSE,
|
|
|
|
#endif
|
|
|
|
_MEDIA,
|
2019-08-16 23:54:16 +00:00
|
|
|
_FINAL
|
|
|
|
};
|
|
|
|
|
2020-02-04 19:17:10 +00:00
|
|
|
#define LS(kc) MT(MOD_LSFT, KC_##kc)
|
|
|
|
#define LC(kc) MT(MOD_LCTL, KC_##kc)
|
|
|
|
#define LG(kc) MT(MOD_LGUI, KC_##kc)
|
|
|
|
#define LA(kc) MT(MOD_LALT, KC_##kc)
|
|
|
|
#define RS(kc) MT(MOD_RSFT, KC_##kc)
|
|
|
|
#define RC(kc) MT(MOD_RCTL, KC_##kc)
|
|
|
|
#define RG(kc) MT(MOD_RGUI, KC_##kc)
|
|
|
|
#define RA(kc) MT(MOD_RALT, KC_##kc)
|
2019-08-16 23:54:16 +00:00
|
|
|
|
2020-02-04 19:17:10 +00:00
|
|
|
#define ED(kc) LT(_EDITOR, KC_##kc)
|
|
|
|
#define NM(kc) LT(_NUMBER, KC_##kc)
|
|
|
|
#define SM(kc) LT(_SYMBOL, KC_##kc)
|
|
|
|
#define SC(kc) LT(_SECRET, KC_##kc)
|
|
|
|
#define FK(kc) LT(_F_KEYS, KC_##kc)
|
|
|
|
#define DB(kc) LT(_DEBUG, KC_##kc)
|
|
|
|
|
|
|
|
void matrix_init_keymap(void);
|
|
|
|
void matrix_scan_keymap(void);
|
|
|
|
void keyboard_post_init_keymap(void);
|
|
|
|
layer_state_t layer_state_set_keymap(layer_state_t state);
|