diff options
Diffstat (limited to 'quantum/process_keycode')
| -rw-r--r-- | quantum/process_keycode/process_tap_dance.c | 5 | ||||
| -rw-r--r-- | quantum/process_keycode/process_unicode.c | 4 | ||||
| -rw-r--r-- | quantum/process_keycode/process_unicode.h | 1 |
3 files changed, 8 insertions, 2 deletions
diff --git a/quantum/process_keycode/process_tap_dance.c b/quantum/process_keycode/process_tap_dance.c index 07de3ecb8..79ade4d00 100644 --- a/quantum/process_keycode/process_tap_dance.c +++ b/quantum/process_keycode/process_tap_dance.c | |||
| @@ -65,9 +65,9 @@ bool process_tap_dance(uint16_t keycode, keyrecord_t *record) { | |||
| 65 | highest_td = idx; | 65 | highest_td = idx; |
| 66 | action = &tap_dance_actions[idx]; | 66 | action = &tap_dance_actions[idx]; |
| 67 | 67 | ||
| 68 | action->state.keycode = keycode; | ||
| 69 | action->state.pressed = record->event.pressed; | 68 | action->state.pressed = record->event.pressed; |
| 70 | if (record->event.pressed) { | 69 | if (record->event.pressed) { |
| 70 | action->state.keycode = keycode; | ||
| 71 | action->state.count++; | 71 | action->state.count++; |
| 72 | action->state.timer = timer_read(); | 72 | action->state.timer = timer_read(); |
| 73 | 73 | ||
| @@ -77,8 +77,9 @@ bool process_tap_dance(uint16_t keycode, keyrecord_t *record) { | |||
| 77 | process_tap_dance_action_on_dance_finished (paction); | 77 | process_tap_dance_action_on_dance_finished (paction); |
| 78 | reset_tap_dance (&paction->state); | 78 | reset_tap_dance (&paction->state); |
| 79 | } | 79 | } |
| 80 | |||
| 81 | last_td = keycode; | ||
| 80 | } | 82 | } |
| 81 | last_td = keycode; | ||
| 82 | 83 | ||
| 83 | break; | 84 | break; |
| 84 | 85 | ||
diff --git a/quantum/process_keycode/process_unicode.c b/quantum/process_keycode/process_unicode.c index 06c1694f2..a5d7dca21 100644 --- a/quantum/process_keycode/process_unicode.c +++ b/quantum/process_keycode/process_unicode.c | |||
| @@ -18,6 +18,10 @@ void set_unicode_input_mode(uint8_t os_target) | |||
| 18 | input_mode = os_target; | 18 | input_mode = os_target; |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | uint8_t get_unicode_input_mode(void) { | ||
| 22 | return input_mode; | ||
| 23 | } | ||
| 24 | |||
| 21 | __attribute__((weak)) | 25 | __attribute__((weak)) |
| 22 | void unicode_input_start (void) { | 26 | void unicode_input_start (void) { |
| 23 | switch(input_mode) { | 27 | switch(input_mode) { |
diff --git a/quantum/process_keycode/process_unicode.h b/quantum/process_keycode/process_unicode.h index 02ce3dd7e..27f8072ee 100644 --- a/quantum/process_keycode/process_unicode.h +++ b/quantum/process_keycode/process_unicode.h | |||
| @@ -13,6 +13,7 @@ | |||
| 13 | #endif | 13 | #endif |
| 14 | 14 | ||
| 15 | void set_unicode_input_mode(uint8_t os_target); | 15 | void set_unicode_input_mode(uint8_t os_target); |
| 16 | uint8_t get_unicode_input_mode(void); | ||
| 16 | void unicode_input_start(void); | 17 | void unicode_input_start(void); |
| 17 | void unicode_input_finish(void); | 18 | void unicode_input_finish(void); |
| 18 | void register_hex(uint16_t hex); | 19 | void register_hex(uint16_t hex); |
