diff options
Diffstat (limited to 'quantum')
| -rw-r--r-- | quantum/quantum.c | 8 | ||||
| -rw-r--r-- | quantum/quantum.h | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index 69692233e..a57d4f89f 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c | |||
| @@ -132,6 +132,14 @@ void unregister_code16 (uint16_t code) { | |||
| 132 | } | 132 | } |
| 133 | } | 133 | } |
| 134 | 134 | ||
| 135 | void tap_code16(uint16_t code) { | ||
| 136 | register_code16(code); | ||
| 137 | #if TAP_CODE_DELAY > 0 | ||
| 138 | wait_ms(TAP_CODE_DELAY); | ||
| 139 | #endif | ||
| 140 | unregister_code16(code); | ||
| 141 | } | ||
| 142 | |||
| 135 | __attribute__ ((weak)) | 143 | __attribute__ ((weak)) |
| 136 | bool process_action_kb(keyrecord_t *record) { | 144 | bool process_action_kb(keyrecord_t *record) { |
| 137 | return true; | 145 | return true; |
diff --git a/quantum/quantum.h b/quantum/quantum.h index 5920e4b13..0faf1af29 100644 --- a/quantum/quantum.h +++ b/quantum/quantum.h | |||
| @@ -243,7 +243,7 @@ void shutdown_user(void); | |||
| 243 | 243 | ||
| 244 | void register_code16(uint16_t code); | 244 | void register_code16(uint16_t code); |
| 245 | void unregister_code16(uint16_t code); | 245 | void unregister_code16(uint16_t code); |
| 246 | inline void tap_code16(uint16_t code) { register_code16(code); unregister_code16(code); } | 246 | void tap_code16(uint16_t code); |
| 247 | 247 | ||
| 248 | #ifdef BACKLIGHT_ENABLE | 248 | #ifdef BACKLIGHT_ENABLE |
| 249 | void backlight_init_ports(void); | 249 | void backlight_init_ports(void); |
