mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-05-04 22:54:16 -04:00
- 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
28 lines
No EOL
684 B
C
28 lines
No EOL
684 B
C
#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;
|
|
}
|
|
} |