summaryrefslogtreecommitdiff
path: root/users/drashna/drashna.h
diff options
context:
space:
mode:
Diffstat (limited to 'users/drashna/drashna.h')
-rw-r--r--users/drashna/drashna.h28
1 files changed, 21 insertions, 7 deletions
diff --git a/users/drashna/drashna.h b/users/drashna/drashna.h
index 4e2a4d5acb..49cdf6ca21 100644
--- a/users/drashna/drashna.h
+++ b/users/drashna/drashna.h
@@ -4,7 +4,7 @@
#pragma once
#include QMK_KEYBOARD_H
-#include "eeprom.h"
+#include "eeconfig_users.h"
#include "keyrecords/wrappers.h"
#include "keyrecords/process_records.h"
#include "callbacks.h"
@@ -30,6 +30,9 @@
#ifdef OS_DETECTION_ENABLE
# include "os_detection.h"
#endif
+#ifdef UNICODE_COMMON_ENABLE
+# include "keyrecords/unicode.h"
+#endif
/* Define layer names */
enum userspace_layers {
@@ -88,14 +91,25 @@ void format_layer_bitmap_string(char* buffer, layer_state_t state, layer_state_t
typedef union {
uint32_t raw;
struct {
- bool rgb_layer_change :1;
- bool is_overwatch :1;
- bool nuke_switch :1;
- bool swapped_numbers :1;
- bool rgb_matrix_idle_anim :1;
- bool autocorrection :1;
+ bool rgb_layer_change :1;
+ bool is_overwatch :1;
+ bool nuke_switch :1;
+ bool swapped_numbers :1;
+ bool rgb_matrix_idle_anim :1;
+ bool mouse_jiggler :1;
+ uint8_t align_reserved :2;
+ uint8_t oled_brightness :8;
+ uint32_t reserved :15;
+ bool check :1;
};
} userspace_config_t;
// clang-format on
+_Static_assert(sizeof(userspace_config_t) == sizeof(uint32_t), "Userspace EECONFIG out of spec.");
+
extern userspace_config_t userspace_config;
+
+void set_keyboard_lock(bool enable);
+bool get_keyboard_lock(void);
+void toggle_keyboard_lock(void);
+const char* get_layer_name_string(layer_state_t state, bool alt_name);