mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-05-05 07:04:17 -04:00
Migrating over userspace
- existing repo was not forked. Wanted to make sure I was using the standard, not replicating it - Updated the readme.md for the latest mappings
This commit is contained in:
parent
67fac7803e
commit
089b71d77b
43 changed files with 1762 additions and 44 deletions
28
users/t4corun/features/tapping.c
Normal file
28
users/t4corun/features/tapping.c
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "tapping.h"
|
||||
|
||||
bool get_hold_on_other_key_press(uint16_t keycode, keyrecord_t *record) {
|
||||
//This is effective for all dual role keys (e.g. Mod-Taps, Layer-Taps, etc)
|
||||
switch(keycode) {
|
||||
default:
|
||||
//Disable HOLD_ON_OTHER_KEY_PRESS aka enable IGNORE_MOD_TAP_INTERRUPT
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
uint16_t get_quick_tap_term(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
default:
|
||||
return QUICK_TAP_TERM;
|
||||
}
|
||||
}
|
||||
|
||||
uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case NAV:
|
||||
return TAPPING_TERM - 60;
|
||||
|
||||
default:
|
||||
//uprintf("tapping term: %d \n", TAPPING_TERM);
|
||||
return TAPPING_TERM;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue