summaryrefslogtreecommitdiffstats
path: root/quantum
diff options
context:
space:
mode:
authorSmilliam <smilliam@gmail.com>2016-07-10 19:04:01 -0700
committerSmilliam <smilliam@gmail.com>2016-07-10 19:04:01 -0700
commitb12fe6abb25db1feca6a7649097a8d1cb67a063f (patch)
tree0537e051555093d27cdb86ef3342851b8f637256 /quantum
parent6b0c9cc905c0985f96a80306cf5fe0d6724b28fc (diff)
Made rollover behavior for space cadet optional
Diffstat (limited to 'quantum')
-rw-r--r--quantum/quantum.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index 71c3c723ba..d91b8f2d06 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -162,10 +162,12 @@ bool process_record_quantum(keyrecord_t *record) {
register_mods(MOD_BIT(KC_LSFT));
}
else {
- if (get_mods() & MOD_BIT(KC_RSFT)) {
- shift_interrupted[0] = true;
- shift_interrupted[1] = true;
- }
+ #ifdef DISABLE_SPACE_CADET_ROLLOVER
+ if (get_mods() & MOD_BIT(KC_RSFT)) {
+ shift_interrupted[0] = true;
+ shift_interrupted[1] = true;
+ }
+ #endif
if (!shift_interrupted[0]) {
register_code(LSPO_KEY);
unregister_code(LSPO_KEY);
@@ -182,10 +184,12 @@ bool process_record_quantum(keyrecord_t *record) {
register_mods(MOD_BIT(KC_RSFT));
}
else {
- if (get_mods() & MOD_BIT(KC_LSFT)) {
- shift_interrupted[0] = true;
- shift_interrupted[1] = true;
- }
+ #ifdef DISABLE_SPACE_CADET_ROLLOVER
+ if (get_mods() & MOD_BIT(KC_LSFT)) {
+ shift_interrupted[0] = true;
+ shift_interrupted[1] = true;
+ }
+ #endif
if (!shift_interrupted[1]) {
register_code(RSPC_KEY);
unregister_code(RSPC_KEY);