summaryrefslogtreecommitdiffstats
path: root/users/drashna/drashna.c
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2021-12-14 20:53:36 -0800
committerGitHub <noreply@github.com>2021-12-14 20:53:36 -0800
commit3fa592a4024a24a636fa0c562e6761667a94f565 (patch)
tree4ce826128e29e36dfe606fa2b5a3d25b3bd0afcc /users/drashna/drashna.c
parentc10bc9f91e737dd3675b2e4492daa09092655af9 (diff)
[Keymap] Unicode and Pointing Device and Autocorect for drashna keymaps (#15415)
Diffstat (limited to 'users/drashna/drashna.c')
-rw-r--r--users/drashna/drashna.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/users/drashna/drashna.c b/users/drashna/drashna.c
index 7e07a2c7c5..9c1233ed90 100644
--- a/users/drashna/drashna.c
+++ b/users/drashna/drashna.c
@@ -70,7 +70,9 @@ void matrix_init_user(void) {
DDRB &= ~(1 << 0);
PORTB &= ~(1 << 0);
#endif
-
+#ifdef CUSTOM_UNICODE_ENABLE
+ matrix_init_unicode();
+#endif
matrix_init_secret();
matrix_init_keymap();
}
@@ -152,6 +154,9 @@ void matrix_scan_user(void) {
#if defined(RGB_MATRIX_ENABLE)
matrix_scan_rgb_matrix();
#endif
+#if defined(POINTING_DEVICE_ENABLE)
+ matrix_scan_pointing();
+#endif
matrix_scan_secret();
@@ -171,6 +176,9 @@ layer_state_t layer_state_set_user(layer_state_t state) {
}
state = update_tri_layer_state(state, _RAISE, _LOWER, _ADJUST);
+#if defined(POINTING_DEVICE_ENABLE)
+ state = layer_state_set_pointing(state);
+#endif
#if defined(RGBLIGHT_ENABLE)
state = layer_state_set_rgb_light(state);
#endif // RGBLIGHT_ENABLE