1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-29 12:50:28 +00:00

Extends mapping slightly for potential duplicate delete and return.

This commit is contained in:
Thomas Harte 2020-02-29 18:40:41 -05:00
parent f25683ebec
commit 54b3e511e9

View File

@ -85,7 +85,7 @@ uint16_t *CharacterMapper::sequence_for_character(char character) {
/* ACK */ X, /* BEL */ X, /* ACK */ X, /* BEL */ X,
/* BS */ KEYS(KeyDelete), /* HT */ X, /* BS */ KEYS(KeyDelete), /* HT */ X,
/* LF */ KEYS(KeyReturn), /* VT */ X, /* LF */ KEYS(KeyReturn), /* VT */ X,
/* FF */ X, /* CR */ X, /* FF */ X, /* CR */ KEYS(KeyReturn),
/* SO */ X, /* SI */ X, /* SO */ X, /* SI */ X,
/* DLE */ X, /* DC1 */ X, /* DLE */ X, /* DC1 */ X,
/* DC2 */ X, /* DC3 */ X, /* DC2 */ X, /* DC3 */ X,
@ -142,7 +142,7 @@ uint16_t *CharacterMapper::sequence_for_character(char character) {
/* x */ KEYS(KeyX), /* y */ KEYS(KeyY), /* x */ KEYS(KeyX), /* y */ KEYS(KeyY),
/* z */ KEYS(KeyZ), /* { */ X, /* z */ KEYS(KeyZ), /* { */ X,
/* | */ SHIFT(KeyAt), /* } */ X, /* | */ SHIFT(KeyAt), /* } */ X,
/* ~ */ X /* ~ */ X, /* DEL */ KEYS(KeyDelete),
}; };
#undef KEYS #undef KEYS
#undef SHIFT #undef SHIFT