Created
August 28, 2016 04:30
-
-
Save ShikiOkasaka/4493fd5dae5dd1a45142f40d7271ecfc to your computer and use it in GitHub Desktop.
Patch for KeyboardJP.c for using '゜' to input "ぁぃぅぇぉ".
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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