Skip to content

Instantly share code, notes, and snippets.

@ShikiOkasaka
Created August 28, 2016 04:30
Show Gist options
  • Save ShikiOkasaka/4493fd5dae5dd1a45142f40d7271ecfc to your computer and use it in GitHub Desktop.
Save ShikiOkasaka/4493fd5dae5dd1a45142f40d7271ecfc to your computer and use it in GitHub Desktop.
Patch for KeyboardJP.c for using '゜' to input "ぁぃぅぇぉ".
case KEY_HANDAKU:
if (last[0] == KEY_H) {
if (count <= 5) {
report[count++] = KEY_BACKSPACE;
report[count++] = KEY_P;
report[count++] = last[1];
}
} else if (memchr(vowelSet + 1, last[0], 5)) {
// Convert {あ゜|い゜|う゜|え゜|お゜} to {ぁ|ぃ|ぅ|ぇ|ぉ}
if (count <= 5) {
report[count++] = KEY_BACKSPACE;
report[count++] = KEY_X;
report[count++] = last[0];
}
}
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment