diff options
Diffstat (limited to 'users/drashna/drashna.c')
| -rw-r--r-- | users/drashna/drashna.c | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/users/drashna/drashna.c b/users/drashna/drashna.c index 71539e8b8..7e07a2c7c 100644 --- a/users/drashna/drashna.c +++ b/users/drashna/drashna.c | |||
| @@ -259,3 +259,61 @@ void matrix_slave_scan_user(void) { | |||
| 259 | matrix_slave_scan_keymap(); | 259 | matrix_slave_scan_keymap(); |
| 260 | } | 260 | } |
| 261 | #endif | 261 | #endif |
| 262 | |||
| 263 | __attribute__((weak)) uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) { | ||
| 264 | switch (keycode) { | ||
| 265 | default: | ||
| 266 | return TAPPING_TERM; | ||
| 267 | } | ||
| 268 | } | ||
| 269 | |||
| 270 | __attribute__((weak)) bool get_permissive_hold(uint16_t keycode, keyrecord_t *record) { | ||
| 271 | // Immediately select the hold action when another key is tapped: | ||
| 272 | // return true; | ||
| 273 | // Do not select the hold action when another key is tapped. | ||
| 274 | // return false; | ||
| 275 | switch (keycode) { | ||
| 276 | default: | ||
| 277 | return false; | ||
| 278 | } | ||
| 279 | } | ||
| 280 | |||
| 281 | __attribute__((weak)) bool get_hold_on_other_key_press(uint16_t keycode, keyrecord_t *record) { | ||
| 282 | // Immediately select the hold action when another key is pressed. | ||
| 283 | // return true; | ||
| 284 | // Do not select the hold action when another key is pressed. | ||
| 285 | // return false; | ||
| 286 | switch (keycode) { | ||
| 287 | case QK_LAYER_TAP ... QK_LAYER_TAP_MAX: | ||
| 288 | return true; | ||
| 289 | default: | ||
| 290 | return false; | ||
| 291 | } | ||
| 292 | } | ||
| 293 | |||
| 294 | __attribute__((weak)) bool get_ignore_mod_tap_interrupt(uint16_t keycode, keyrecord_t *record) { | ||
| 295 | // Do not force the mod-tap key press to be handled as a modifier | ||
| 296 | // if any other key was pressed while the mod-tap key is held down. | ||
| 297 | // return true; | ||
| 298 | // Force the mod-tap key press to be handled as a modifier if any | ||
| 299 | // other key was pressed while the mod-tap key is held down. | ||
| 300 | // return false; | ||
| 301 | switch (keycode) { | ||
| 302 | default: | ||
| 303 | return true; | ||
| 304 | } | ||
| 305 | } | ||
| 306 | |||
| 307 | __attribute__((weak)) bool get_tapping_force_hold(uint16_t keycode, keyrecord_t *record) { | ||
| 308 | switch (keycode) { | ||
| 309 | default: | ||
| 310 | return false; | ||
| 311 | } | ||
| 312 | } | ||
| 313 | |||
| 314 | __attribute__((weak)) bool get_retro_tapping(uint16_t keycode, keyrecord_t *record) { | ||
| 315 | switch (keycode) { | ||
| 316 | default: | ||
| 317 | return false; | ||
| 318 | } | ||
| 319 | } | ||
