Skip to content

Commit

Permalink
[qmk#9]
Browse files Browse the repository at this point in the history
  BULLETPROOF ACCENTED ACUTE FOR ALL   5   VOWELS AND N TILDE !!!

* modified files:  keyboards/40percentclub/gdherkin/keymaps/30_layout/keymap.c

    * IMPLEMENTING 150 ms keypress time for shift key(space),

    * A, I, O, U vowels implemented with implicit acute accent included,

        * As I need having tap_dance functions over KC_A, KC_U, KC_I and
                tap_dance doesn’t get acute modifying character when shift is pressed,
                I have implemented acute modifying character with action_function,
                but over a new [ACUT] layer for not to overlapping previous tap_dance over A, U, I.
                And I access this new layer by pressing acute accent trigger (KC_V, KC_M),

        * It appeared a new problem when once in [ACUT] layer, I need KC_A for two
                functions again: ( á  |  Á ) and ( LSHIFT while acute accent trigger is pressed ).
                I have solved this issue, by implementing a new tap_dance for KC_A called
                A_AC_ON, who calls action_function directly with a NULL keyrecord_t parameter.
                And there I switch on or off LSHIFT with add_mods & add_weak_mods, del_mods & del_weak_mods.
           NOTE:MAYBE THIS 4 MODS FUNCTIONS TOGETHER WORK WELL INTO A TAP_DANCE_FUNCTION. I HAVE TO TRY IT !

                This way, I can activate LSHIFT when hold, or call action_function directly
                from the code (not from KEYMAP, as I believed that was the only way to call it).
                It’s a solution, not too much elegant, but a solution.
                A better solution it should be to rewrite tap_dance_function at process_tap_dance
                files at ‘qmk_firmware/quantum/process_keycode/process_tap_dance.h & .c’

* added files:  QMK POWER tricks,
    * where I’m going to collect all new power discoveries of C, QMK, algorithms, or whatever it brights by itself !
        * The first annotation is about how to manage what layer I am at present time, whenever I want to know it.
  • Loading branch information
manolodeinternet committed Feb 25, 2019
1 parent de999d7 commit ca2703c
Show file tree
Hide file tree
Showing 2 changed files with 582 additions and 182 deletions.
20 changes: 20 additions & 0 deletions QMK POWER tricks
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
QMK POWER tricks
author: manolodeinternet@gmail.com
date: 20190223U
last modification: 20190223U

date: 20190223U
****************************************************************************************************************************************
* FOR KNOWING WHAT LAYER WE ARE AT THE MOMENT:

uint8_t layer = biton32(layer_state);
if (layer == _NUMPAD)
{
layer_off(_NUMPAD);
} else {
layer_on(_NUMPAD);
}

date: 2019...
****************************************************************************************************************************************
*
Loading

0 comments on commit ca2703c

Please sign in to comment.