Skip to content

Commit

Permalink
qk_ucis_state.codes → qk_ucis_state.keycodes
Browse files Browse the repository at this point in the history
  • Loading branch information
vomindoraan committed May 7, 2020
1 parent 6d8fbca commit 2a9eebc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions layouts/community/ergodox/algernon/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1189,10 +1189,10 @@ void qk_ucis_symbol_fallback (void) {
for (uint8_t i = 0; i < qk_ucis_state.count - 1; i++) {
uint8_t code;

if ((qk_ucis_state.codes[i] >= M(A_1)) && (qk_ucis_state.codes[i] <= M(A_0)))
code = qk_ucis_state.codes[i] - M(A_1) + KC_1;
if ((qk_ucis_state.keycodes[i] >= M(A_1)) && (qk_ucis_state.keycodes[i] <= M(A_0)))
code = qk_ucis_state.keycodes[i] - M(A_1) + KC_1;
else
code = qk_ucis_state.codes[i];
code = qk_ucis_state.keycodes[i];
register_code(code);
unregister_code(code);
wait_ms (10);
Expand Down
8 changes: 4 additions & 4 deletions quantum/process_keycode/process_ucis.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ static bool is_uni_seq(char *seq) {
} else {
keycode = seq[i] - 'a' + KC_A;
}
if (i > qk_ucis_state.count || qk_ucis_state.codes[i] != keycode) {
if (i > qk_ucis_state.count || qk_ucis_state.keycodes[i] != keycode) {
return false;
}
}
return qk_ucis_state.codes[i] == KC_ENT || qk_ucis_state.codes[i] == KC_SPC;
return qk_ucis_state.keycodes[i] == KC_ENT || qk_ucis_state.keycodes[i] == KC_SPC;
}

__attribute__((weak)) void qk_ucis_symbol_fallback(void) {
for (uint8_t i = 0; i < qk_ucis_state.count - 1; i++) {
uint8_t keycode = qk_ucis_state.codes[i];
uint8_t keycode = qk_ucis_state.keycodes[i];
register_code(keycode);
unregister_code(keycode);
wait_ms(UNICODE_TYPE_DELAY);
Expand Down Expand Up @@ -81,7 +81,7 @@ bool process_ucis(uint16_t keycode, keyrecord_t *record) {
return false;
}

qk_ucis_state.codes[qk_ucis_state.count] = keycode;
qk_ucis_state.keycodes[qk_ucis_state.count] = keycode;
qk_ucis_state.count++;

switch (keycode) {
Expand Down
2 changes: 1 addition & 1 deletion quantum/process_keycode/process_ucis.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ typedef struct {

typedef struct {
uint8_t count;
uint16_t codes[UCIS_MAX_SYMBOL_LENGTH];
uint16_t keycodes[UCIS_MAX_SYMBOL_LENGTH];
bool in_progress : 1;
} qk_ucis_state_t;

Expand Down

0 comments on commit 2a9eebc

Please sign in to comment.