diff options
author | Shayne Holmes <shayneh@qualtrics.com> | 2017-06-30 12:08:09 -0700 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2017-07-05 10:55:47 -0400 |
commit | 48ff93582ba9efbe5b8a2f7392eee822e6f25526 (patch) | |
tree | edab94f2c0d1701895da110bda1352f5dd3fb3a3 /quantum/quantum.h | |
parent | fdc2e8058b46f569a7a68ab21ef9cb3d20a9bdc2 (diff) | |
download | qmk_firmware-48ff93582ba9efbe5b8a2f7392eee822e6f25526.tar.gz |
Pull out sendstring variations to their own files.
Instead of having all sendstring keycode mappings in the main quantum.c
file, give each one its own file in keymap_extras that can be #included
in a user's keymap. If one is included, it will define the appropriate
lookup tables and overwrite the weak definitions in quantum.c.
(Including more than one sendstring definition will fail at compile
time.)
Update @rai-suta's test keymap to match, as well as the documentation.
Diffstat (limited to 'quantum/quantum.h')
-rw-r--r-- | quantum/quantum.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/quantum/quantum.h b/quantum/quantum.h index 1dafbf3b0..e00fe2346 100644 --- a/quantum/quantum.h +++ b/quantum/quantum.h @@ -95,6 +95,8 @@ extern uint32_t default_layer_state; #endif #define SEND_STRING(str) send_string(PSTR(str)) +extern const bool ascii_to_shift_lut[0x80]; +extern const uint8_t ascii_to_keycode_lut[0x80]; void send_string(const char *str); void send_string_with_delay(const char *str, uint8_t interval); |