summaryrefslogtreecommitdiff
path: root/users/spacebarracecar
diff options
context:
space:
mode:
authorSpacebarRacecar <42380065+SpacebarRacecar@users.noreply.github.com>2019-01-12 18:32:50 +0100
committerDrashna Jaelre <drashna@live.com>2019-01-12 09:32:50 -0800
commit4cde82ef57ff2f00dc637ac41175ace2f551da47 (patch)
treeb0a7c09da08e81c3b65827ab07d360d41871ff0d /users/spacebarracecar
parent87b277c21af20e637302a859c88a60345c2ff1c8 (diff)
downloadqmk_firmware-4cde82ef57ff2f00dc637ac41175ace2f551da47.tar.gz
qmk_firmware-4cde82ef57ff2f00dc637ac41175ace2f551da47.zip
[Keymap] Update to personal keymaps and userspace (#4831)
* changed ortho keymaps and userspace * changed prime_o keymap * changed userspace * optimized keymaps and userspace * removed permissive hold as it doesn't seem to do anything * defined TAPPING_TERM in userspace config.h
Diffstat (limited to 'users/spacebarracecar')
-rw-r--r--users/spacebarracecar/config.h2
-rw-r--r--users/spacebarracecar/spacebarracecar.c6
-rw-r--r--users/spacebarracecar/spacebarracecar.h2
3 files changed, 7 insertions, 3 deletions
diff --git a/users/spacebarracecar/config.h b/users/spacebarracecar/config.h
index e69de29bb2..748c047155 100644
--- a/users/spacebarracecar/config.h
+++ b/users/spacebarracecar/config.h
@@ -0,0 +1,2 @@
+#pragma once
+#define TAPPING_TERM 200
diff --git a/users/spacebarracecar/spacebarracecar.c b/users/spacebarracecar/spacebarracecar.c
index 130d7dc2d4..2ab10d9459 100644
--- a/users/spacebarracecar/spacebarracecar.c
+++ b/users/spacebarracecar/spacebarracecar.c
@@ -96,7 +96,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
navesc_timer = timer_read();
layer_on(_NAV);
} else {
- if (timer_elapsed(navesc_timer) < 200 && navesc) {
+ if (timer_elapsed(navesc_timer) < TAPPING_TERM && navesc) {
register_code(KC_ESC);
unregister_code(KC_ESC);
}
@@ -134,7 +134,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
register_code(KC_LSFT);
lshift = true;
} else {
- if (timer_elapsed(lshift_timer) < 200 && lshiftp && !game) {
+ if (timer_elapsed(lshift_timer) < TAPPING_TERM && lshiftp && !game) {
register_code(KC_LSFT);
register_code(KC_8);
unregister_code(KC_8);
@@ -154,7 +154,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
register_code(KC_LSFT);
rshift = true;
} else {
- if (timer_elapsed(rshift_timer) < 200 && rshiftp && !game) {
+ if (timer_elapsed(rshift_timer) < TAPPING_TERM && rshiftp && !game) {
register_code(KC_LSFT);
register_code(KC_9);
unregister_code(KC_9);
diff --git a/users/spacebarracecar/spacebarracecar.h b/users/spacebarracecar/spacebarracecar.h
index d0259b73cc..b57cbed824 100644
--- a/users/spacebarracecar/spacebarracecar.h
+++ b/users/spacebarracecar/spacebarracecar.h
@@ -88,6 +88,8 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record);
#define GUIL LGUI(KC_LEFT)
#define GUIR RGUI(KC_RIGHT)
+#define CTLENT CTL_T(KC_ENT)
+
/*
Templates for Keys, with custom shifted and non shifted Characters
*/