forked from mirrors/qmk_userspace
Merge branch 'modstaptoggle' of git://github.com/simonmelhart/tmk_keyboard into simonmelhart-modstaptoggle
Conflicts: common/action_code.h
This commit is contained in:
commit
fd9ee507a5
3 changed files with 20 additions and 0 deletions
|
@ -128,6 +128,17 @@ void process_action(keyrecord_t *record)
|
|||
}
|
||||
break;
|
||||
#endif
|
||||
case MODS_TAP_TOGGLE:
|
||||
if (event.pressed) {
|
||||
if (tap_count <= TAPPING_TOGGLE) {
|
||||
register_mods(mods);
|
||||
}
|
||||
} else {
|
||||
if (tap_count < TAPPING_TOGGLE) {
|
||||
unregister_mods(mods);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
if (event.pressed) {
|
||||
if (tap_count > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue