aboutsummaryrefslogtreecommitdiff
path: root/qmk/keyboards/sofle_choc/keymaps/custom/keycodes.c
diff options
context:
space:
mode:
Diffstat (limited to 'qmk/keyboards/sofle_choc/keymaps/custom/keycodes.c')
-rw-r--r--qmk/keyboards/sofle_choc/keymaps/custom/keycodes.c32
1 files changed, 1 insertions, 31 deletions
diff --git a/qmk/keyboards/sofle_choc/keymaps/custom/keycodes.c b/qmk/keyboards/sofle_choc/keymaps/custom/keycodes.c
index 8819917..e82eed5 100644
--- a/qmk/keyboards/sofle_choc/keymaps/custom/keycodes.c
+++ b/qmk/keyboards/sofle_choc/keymaps/custom/keycodes.c
@@ -1,26 +1,6 @@
#include QMK_KEYBOARD_H
#include "keymap_bepo.h"
#include "keycodes.h"
-#include "star_key.h"
-#include "lighting.h"
-#include "enter_dance.h"
-#include "shift_dance.h"
-
-void keyboard_post_init_user(void) {
- lighting_init();
- star_key_init();
-}
-
-void housekeeping_task_user(void) {
- if (is_keyboard_master()) {
- sync_star_key();
- }
- housekeeping_task_lighting();
-}
-
-void oneshot_mods_changed_user(uint8_t mods) {
- oneshot_mods_changed_lighting(mods);
-}
/*
* Rules and modifier to apply over the keycodes. This includes the keys
@@ -82,7 +62,7 @@ static uint32_t key_timer; // timer for last keyboard activity, use
// idle time possible
static uint16_t latest_key = 0L;
-bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+bool keycodes_process_record(uint16_t keycode, keyrecord_t *record) {
if (!record->event.pressed) {
@@ -92,17 +72,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
latest_key = keycode;
}
- // Call the callback handlers
- star_key_process_record(keycode, record);
- shift_dance_process_record(keycode, record);
- enter_dance_process_record(keycode, record);
-
switch (keycode) {
- case KC_LEFT_SHIFT:
- if (host_keyboard_led_state().caps_lock) {
- tap_code16(KC_CAPS_LOCK);
- }
- return true;
case KC_ESC:
case AL_ENT:
if (layer_state_is(LAYER_SYMBOLS) && !record->event.pressed) {