Skip to content

Commit

Permalink
Optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
moutis authored Feb 26, 2022
1 parent 60dc854 commit f593b84
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions moutis_COMBO_hd_neu_sk.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const uint16_t PROGMEM Hmdsh_combo[] = {KC_MINS, KC_O, COMBO_END}; // — m dash
const uint16_t PROGMEM Hunds_combo[] = {KC_U, KC_W, COMBO_END}; // _ underscore
const uint16_t PROGMEM Htild_combo[] = {KC_MINS, KC_W, COMBO_END}; // ~ tilde (not the dead one)
const uint16_t PROGMEM Hequal_combo[] = {KC_MINS, KC_Y, COMBO_END}; // = equal
const uint16_t PROGMEM Hscln_combo[] = {KC_COMM, RSFT_T(KC_A), COMBO_END}; // ; semicolon
const uint16_t PROGMEM Hscln_combo[] = {LT(4, KC_COMM), RSFT_T(KC_A), COMBO_END}; // ; semicolon
const uint16_t PROGMEM Hcoln_combo[] = {KC_HASH, KC_DOT, COMBO_END}; // : colon

// spatially arranged characters and diacritics
Expand All @@ -108,7 +108,7 @@ const uint16_t PROGMEM Henye_combo[] = {LALT_T(KC_S), LSFT_T(KC_D), COMBO_END};
// LEFT HAND

// TEXT ENTRY - off map standard alphas
//const uint16_t PROGMEM H_J_combo[] = {KC_O, KC_W, COMBO_END}; // TYPE "j"
//const uint16_t PROGMEM H_J_combo[] = {KC_P, KC_V, COMBO_END}; // TYPE "j"
const uint16_t PROGMEM H_Z_combo[] = {KC_J, KC_G, COMBO_END}; // TYPE "z"
const uint16_t PROGMEM H_Q_combo[] = {KC_U, KC_Y, COMBO_END}; // TYPE "q"

Expand Down
2 changes: 1 addition & 1 deletion moutis_PROCESS_RECORD_hd_neu.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
user_config.OSIndex = 0; // for Mac Semkeys
return_state = true; // let QMK do it's swap thing.
goto storeSettings;
case HD_AdaptKeyToggle: // toggle AdaptiveKeys (and LingerKeys)
case HD_AdaptKeyToggle: // toggle AdaptiveKeys (& LingerKeys, linger combos)
user_config.AdaptiveKeys = !user_config.AdaptiveKeys;
return_state = false; // don't do more with this record.
goto storeSettings;
Expand Down
13 changes: 10 additions & 3 deletions moutis_adaptivekeys.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
I think this will work with all Hands Down Neu variants (Platinum, Gold, Silver, Bronze)
Finally getting to the last of imagined features that spurred Hands Down design!
dual-function keys (MOD_TAP, LAYER_TAP) have already been handled and filtered out.
NOTE: assumed dual-function keys (MOD_TAP, LAYER_TAP) have already been handled and filtered out.
*/

Expand Down Expand Up @@ -151,7 +151,6 @@ bool process_adaptive_key(uint16_t keycode, const keyrecord_t *record) {
break;
}
break;
break;
case KC_S:
switch (prior_keycode) {
case KC_T: // for "tness"
Expand Down Expand Up @@ -224,7 +223,15 @@ bool process_adaptive_key(uint16_t keycode, const keyrecord_t *record) {
break;
}
break;
case KC_COMM: // why is this not working?
case KC_SLSH:
switch (prior_keycode) {
case KC_DOT:
send_string("com");
return_state = false; // done.
break;
}
break;
case KC_COMM:
switch (prior_keycode) {
case KC_A:
tap_code(KC_U); // quickly typing "A," yields "AU"
Expand Down

0 comments on commit f593b84

Please sign in to comment.