2020-07-13 13:48:10 +02:00
|
|
|
/*
|
|
|
|
Copyright 2017 Christopher Courtney <drashna@live.com> @drashna
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2020-05-26 22:31:54 +02:00
|
|
|
#pragma once
|
|
|
|
#include QMK_KEYBOARD_H
|
|
|
|
|
|
|
|
#include "version.h"
|
|
|
|
#include "eeprom.h"
|
2020-07-13 13:48:10 +02:00
|
|
|
#include "wrappers.h"
|
2020-05-26 22:31:54 +02:00
|
|
|
|
|
|
|
|
2020-07-13 13:48:10 +02:00
|
|
|
/* Define layer names */
|
2020-05-26 22:31:54 +02:00
|
|
|
enum userspace_layers {
|
2020-07-13 13:48:10 +02:00
|
|
|
_QWERTY = 0,
|
|
|
|
_NUMLOCK = 0,
|
|
|
|
_WORKMAN,
|
|
|
|
_MODS, /* layer 8 */
|
|
|
|
_GAMEPAD,
|
|
|
|
_DIABLO,
|
|
|
|
_WARCRAFT,
|
|
|
|
_MACROS,
|
|
|
|
_MEDIA,
|
2020-05-26 22:31:54 +02:00
|
|
|
_LOWER,
|
|
|
|
_RAISE,
|
|
|
|
_NAV,
|
|
|
|
_ADJUST,
|
|
|
|
};
|
|
|
|
|
2020-07-13 13:48:10 +02:00
|
|
|
// clang-format off
|
|
|
|
typedef union {
|
|
|
|
uint32_t raw;
|
|
|
|
struct {
|
|
|
|
bool rgb_layer_change :1;
|
|
|
|
bool swapped_numbers :1;
|
|
|
|
bool rgb_matrix_idle_anim :1;
|
|
|
|
};
|
|
|
|
} userspace_config_t;
|
|
|
|
// clang-format on
|
|
|
|
|
|
|
|
extern userspace_config_t userspace_config;
|