diff options
author | Drashna Jaelre <drashna@live.com> | 2019-04-11 15:21:45 -0700 |
---|---|---|
committer | skullydazed <skullydazed@users.noreply.github.com> | 2019-04-12 14:07:05 -0700 |
commit | a6857d18e14322fb75bb168ab13fbea0ff631324 (patch) | |
tree | 3b7c234b54c26297dc956bc7b4b04a85a6d81e38 | |
parent | 1d7a06a0a25167ff49702bab39e7e4e60dc6319f (diff) | |
download | qmk_firmware-a6857d18e14322fb75bb168ab13fbea0ff631324.tar.gz qmk_firmware-a6857d18e14322fb75bb168ab13fbea0ff631324.zip |
Change table names
-rw-r--r-- | quantum/quantum.c | 8 | ||||
-rw-r--r-- | quantum/quantum.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index 8ac3a57dca..f5e3b63f8d 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c @@ -851,7 +851,7 @@ const bool ascii_to_shift_lut[0x80] PROGMEM = { }; __attribute__ ((weak)) -const bool ascii_to_alt_lut[0x80] PROGMEM = { +const bool ascii_to_altgr_lut[0x80] PROGMEM = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @@ -953,16 +953,16 @@ void send_string_with_delay_P(const char *str, uint8_t interval) { void send_char(char ascii_code) { uint8_t keycode = pgm_read_byte(&ascii_to_keycode_lut[(uint8_t)ascii_code]); bool is_shifted = pgm_read_byte(&ascii_to_shift_lut[(uint8_t)ascii_code]); - bool is_alted = pgm_read_byte(&ascii_to_alt_lut[(uint8_t)ascii_code]); + bool is_altgred = pgm_read_byte(&ascii_to_altgr_lut[(uint8_t)ascii_code]); if (is_shifted) { register_code(KC_LSFT); } - if (is_alted) { + if (is_altgred) { register_code(KC_RALT); } tap_code(keycode); - if (is_alted) { + if (is_altgred) { unregister_code(KC_RALT); } if (is_shifted) { diff --git a/quantum/quantum.h b/quantum/quantum.h index f7b278cefd..e2f467125e 100644 --- a/quantum/quantum.h +++ b/quantum/quantum.h @@ -206,7 +206,7 @@ extern uint32_t default_layer_state; #define SEND_STRING(str) send_string_P(PSTR(str)) extern const bool ascii_to_shift_lut[0x80]; -extern const bool ascii_to_alt_lut[0x80]; +extern const bool ascii_to_altgr_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); |