summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Đorđević <vomindoraan@gmail.com>2018-11-27 23:29:59 +0100
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2018-11-27 14:29:59 -0800
commite4dfcf896ef641701564bec5ea1ea7aa81b072bd (patch)
tree804821ab4d0b087785297884b0233c439fbce366
parent82c02d9b8d30cac7ab0b0d21e9d81c1a70df73c1 (diff)
Add tap_code16 function (#4362)
-rw-r--r--quantum/quantum.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/quantum/quantum.h b/quantum/quantum.h
index fe670c8eb4..41c7d8351a 100644
--- a/quantum/quantum.h
+++ b/quantum/quantum.h
@@ -240,8 +240,9 @@ void reset_keyboard(void);
void startup_user(void);
void shutdown_user(void);
-void register_code16 (uint16_t code);
-void unregister_code16 (uint16_t code);
+void register_code16(uint16_t code);
+void unregister_code16(uint16_t code);
+inline void tap_code16(uint16_t code) { register_code16(code); unregister_code16(code); }
#ifdef BACKLIGHT_ENABLE
void backlight_init_ports(void);