diff options
| author | QMK Bot <hello@qmk.fm> | 2022-02-12 10:29:31 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-12 18:29:31 +0000 |
| commit | 63646e8906e062d1c1de3925cba70c4e3426a855 (patch) | |
| tree | 4e91648b77b838e1125cf86331d7e84bde6d07a9 /quantum/action_tapping.c | |
| parent | afcdd7079c774dec2aa4b7f2d08adf8b7310919b (diff) | |
Format code according to conventions (#16322)
Diffstat (limited to 'quantum/action_tapping.c')
| -rw-r--r-- | quantum/action_tapping.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/quantum/action_tapping.c b/quantum/action_tapping.c index 4ba38bee8d..6f8b4f8c56 100644 --- a/quantum/action_tapping.c +++ b/quantum/action_tapping.c | |||
| @@ -26,7 +26,9 @@ | |||
| 26 | 26 | ||
| 27 | uint16_t g_tapping_term = TAPPING_TERM; | 27 | uint16_t g_tapping_term = TAPPING_TERM; |
| 28 | 28 | ||
| 29 | __attribute__((weak)) uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) { return g_tapping_term; } | 29 | __attribute__((weak)) uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) { |
| 30 | return g_tapping_term; | ||
| 31 | } | ||
| 30 | 32 | ||
| 31 | # ifdef TAPPING_TERM_PER_KEY | 33 | # ifdef TAPPING_TERM_PER_KEY |
| 32 | # define WITHIN_TAPPING_TERM(e) (TIMER_DIFF_16(e.time, tapping_key.event.time) < get_tapping_term(get_record_keycode(&tapping_key, false), &tapping_key)) | 34 | # define WITHIN_TAPPING_TERM(e) (TIMER_DIFF_16(e.time, tapping_key.event.time) < get_tapping_term(get_record_keycode(&tapping_key, false), &tapping_key)) |
| @@ -35,15 +37,21 @@ __attribute__((weak)) uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *r | |||
| 35 | # endif | 37 | # endif |
| 36 | 38 | ||
| 37 | # ifdef TAPPING_FORCE_HOLD_PER_KEY | 39 | # ifdef TAPPING_FORCE_HOLD_PER_KEY |
| 38 | __attribute__((weak)) bool get_tapping_force_hold(uint16_t keycode, keyrecord_t *record) { return false; } | 40 | __attribute__((weak)) bool get_tapping_force_hold(uint16_t keycode, keyrecord_t *record) { |
| 41 | return false; | ||
| 42 | } | ||
| 39 | # endif | 43 | # endif |
| 40 | 44 | ||
| 41 | # ifdef PERMISSIVE_HOLD_PER_KEY | 45 | # ifdef PERMISSIVE_HOLD_PER_KEY |
| 42 | __attribute__((weak)) bool get_permissive_hold(uint16_t keycode, keyrecord_t *record) { return false; } | 46 | __attribute__((weak)) bool get_permissive_hold(uint16_t keycode, keyrecord_t *record) { |
| 47 | return false; | ||
| 48 | } | ||
| 43 | # endif | 49 | # endif |
| 44 | 50 | ||
| 45 | # ifdef HOLD_ON_OTHER_KEY_PRESS_PER_KEY | 51 | # ifdef HOLD_ON_OTHER_KEY_PRESS_PER_KEY |
| 46 | __attribute__((weak)) bool get_hold_on_other_key_press(uint16_t keycode, keyrecord_t *record) { return false; } | 52 | __attribute__((weak)) bool get_hold_on_other_key_press(uint16_t keycode, keyrecord_t *record) { |
| 53 | return false; | ||
| 54 | } | ||
| 47 | # endif | 55 | # endif |
| 48 | 56 | ||
| 49 | # if defined(AUTO_SHIFT_ENABLE) && defined(RETRO_SHIFT) | 57 | # if defined(AUTO_SHIFT_ENABLE) && defined(RETRO_SHIFT) |
