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.
This commit is contained in:
parent
fdc2e8058b
commit
48ff93582b
8 changed files with 153 additions and 92 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue