summaryrefslogtreecommitdiff
path: root/users/davidkristoffersen/hardware/split_space.c
diff options
context:
space:
mode:
authorvin <git@vineetk.net>2023-10-15 19:46:33 -0400
committervin <git@vineetk.net>2023-10-15 19:46:33 -0400
commit7ed78a843d4a90ae8adc69bf3c3dbf573a379f75 (patch)
tree420f8e7829b46bf43b5dbafc46f0a72f644e9588 /users/davidkristoffersen/hardware/split_space.c
parent392a85e1f6fefd549cd52945ab1447a2d6901484 (diff)
remove userspace declarations
Diffstat (limited to 'users/davidkristoffersen/hardware/split_space.c')
-rw-r--r--users/davidkristoffersen/hardware/split_space.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/users/davidkristoffersen/hardware/split_space.c b/users/davidkristoffersen/hardware/split_space.c
deleted file mode 100644
index da25343f3d..0000000000
--- a/users/davidkristoffersen/hardware/split_space.c
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright 2022 David Kristoffersen (@davidkristoffersen)
-// SPDX-License-Identifier: GPL-3.0-or-later
-
-#include "split_space.h"
-
-#ifdef SPLIT_SPACE
-void handle_split_space(uint16_t keycode) {
- // Disable modifiers when numpad is active
- if (IS_LAYER_ON(NUMPAD)) clear_oneshot_mods();
-
- if (keycode == KC_LSPC) {
- // 2ng tap: Activate ctrl if shift is active
- if (get_oneshot_mods() & MOD_MASK_SHIFT) {
- clear_oneshot_mods();
- set_oneshot_mods(MOD_LCTL);
- }
- // 1st. tap: Activate shift if no modifier is active
- else {
- set_oneshot_mods(MOD_LSFT);
- }
- }
-}
-#endif