mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-17 13:12:08 +00:00
add tap dancing
This commit is contained in:
parent
766fccd2de
commit
ea45aa1dbd
@ -35,9 +35,10 @@
|
|||||||
/*
|
/*
|
||||||
the minimum time you have to hold a key to activate the "hold" key
|
the minimum time you have to hold a key to activate the "hold" key
|
||||||
- used for modifiers and layer taps
|
- used for modifiers and layer taps
|
||||||
|
- also used for tap-dancing with multiple keys
|
||||||
- default 200
|
- default 200
|
||||||
*/
|
*/
|
||||||
#define TAPPING_TERM 400
|
#define TAPPING_TERM 300
|
||||||
|
|
||||||
/*
|
/*
|
||||||
do not activate the modifier when another key is being pressed and released while the tap_key is being held before tapping_term has been reached
|
do not activate the modifier when another key is being pressed and released while the tap_key is being held before tapping_term has been reached
|
||||||
|
@ -11,10 +11,20 @@ enum layers {
|
|||||||
_KBD_CTRL
|
_KBD_CTRL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum {
|
||||||
|
DOT_COL,
|
||||||
|
COM_SEM
|
||||||
|
};
|
||||||
|
|
||||||
|
qk_tap_dance_action_t tap_dance_actions[] = {
|
||||||
|
[DOT_COL] = ACTION_TAP_DANCE_DOUBLE(KC_DOT, KC_COLN),
|
||||||
|
[COM_SEM] = ACTION_TAP_DANCE_DOUBLE(KC_COMM, KC_SCLN),
|
||||||
|
};
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
[_LETTERS] = LAYOUT(
|
[_LETTERS] = LAYOUT(
|
||||||
HYPA, KC_X, KC_DOT, KC_O, KC_COMM, KC_Y, KC_V, KC_G, KC_C, KC_L, KC_J, KC_NO,
|
HYPA, KC_X, TD(DOT_COL), KC_O, TD(COM_SEM), KC_Y, KC_V, KC_G, KC_C, KC_L, KC_J, KC_NO,
|
||||||
KC_ESC, CTL_T(KC_H), ALT_T(KC_A), GUI_T(KC_E), SFT_T(KC_I), KC_U, KC_D, SFT_T(KC_T), GUI_T(KC_R), ALT_T(KC_N), CTL_T(KC_S), KC_F,
|
KC_ESC, CTL_T(KC_H), ALT_T(KC_A), GUI_T(KC_E), SFT_T(KC_I), KC_U, KC_D, SFT_T(KC_T), GUI_T(KC_R), ALT_T(KC_N), CTL_T(KC_S), KC_F,
|
||||||
G(KC_Z), KC_K, KC_Q, DE_AE, DE_UE, DE_OE, KC_NO, KC_NO, KC_NO, KC_NO, KC_B, KC_P, KC_W, KC_M, KC_Z, DE_SS,
|
G(KC_Z), KC_K, KC_Q, DE_AE, DE_UE, DE_OE, KC_NO, KC_NO, KC_NO, KC_NO, KC_B, KC_P, KC_W, KC_M, KC_Z, DE_SS,
|
||||||
NUM, SYM, KC_TAB, KC_SPACE, KC_ENT, KC_LSFT, KC_BSPC, KC_DEL, NUM, SYM),
|
NUM, SYM, KC_TAB, KC_SPACE, KC_ENT, KC_LSFT, KC_BSPC, KC_DEL, NUM, SYM),
|
||||||
|
@ -25,5 +25,3 @@
|
|||||||
#define SFT_ENT SFT_T(KC_ENT)
|
#define SFT_ENT SFT_T(KC_ENT)
|
||||||
#define CMD_BSP GUI_T(KC_BSPC)
|
#define CMD_BSP GUI_T(KC_BSPC)
|
||||||
#define ALT_DEL ALT_T(KC_DEL)
|
#define ALT_DEL ALT_T(KC_DEL)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
OLED_ENABLE = yes
|
OLED_ENABLE = yes # Enables the use of OLED displays
|
||||||
OLED_DRIVER = SSD1306 # Enables the use of OLED displays
|
OLED_DRIVER = SSD1306
|
||||||
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
|
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
|
||||||
ENCODER_ENABLE = no # Enables the use of one or more encoders
|
|
||||||
MOUSEKEY_ENABLE = yes # Enables mouse simulation
|
MOUSEKEY_ENABLE = yes # Enables mouse simulation
|
||||||
|
TAP_DANCE_ENABLE = yes # Enables tap dancing macros
|
||||||
|
ENCODER_ENABLE = no # Enables the use of one or more encoders
|
||||||
|
Loading…
Reference in New Issue
Block a user