summaryrefslogtreecommitdiffstats
path: root/quantum/quantum.h
diff options
context:
space:
mode:
authorGergely Nagy <algernon@madhouse-project.org>2016-08-18 11:29:53 +0200
committerGergely Nagy <algernon@madhouse-project.org>2016-08-18 11:29:53 +0200
commit0d28787c5cf2173d12f57b397515f91cffaa820a (patch)
treebca75f19d75960e8663c7f8341eea711cf8ae457 /quantum/quantum.h
parent8144ce8852f690d5772d80ed2b96ae4af201e266 (diff)
downloadqmk_firmware-0d28787c5cf2173d12f57b397515f91cffaa820a.tar.gz
qmk_firmware-0d28787c5cf2173d12f57b397515f91cffaa820a.tar.xz
Add a register/unregister_code16 pair of functions
These functions register not only the 8bit keycode, but the modifiers too. It doesn't handle the full range of the upper 8bits, just the mods, but that's a good start. Changed the tap-dance pair functions to use these, so one can do: `ACTION_TAP_DANCE_DOUBLE (KC_COLN, KC_SCLN)` ...and that will do the right thing. Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
Diffstat (limited to 'quantum/quantum.h')
-rw-r--r--quantum/quantum.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/quantum/quantum.h b/quantum/quantum.h
index 6e3fbcc79..0c6046649 100644
--- a/quantum/quantum.h
+++ b/quantum/quantum.h
@@ -83,6 +83,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);
+
#ifdef BACKLIGHT_ENABLE
void backlight_init_ports(void);