summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFieryMewtwo <77066742+FieryMewtwo@users.noreply.github.com>2021-09-09 10:38:26 -0400
committerFieryMewtwo <77066742+FieryMewtwo@users.noreply.github.com>2021-09-09 10:38:26 -0400
commit3e0cd694dcff14aa1ae9e4d5b7764be834f640d4 (patch)
tree98c9b9bc37030fab7cb26e46bbd60118e73d700c
parent55a097bac84cef7e7e192a351e10cd1823ddc200 (diff)
Created Automatically make the keyboard switch to lowercase after the first character (markdown)
-rw-r--r--Automatically-make-the-keyboard-switch-to-lowercase-after-the-first-character.md36
1 files changed, 36 insertions, 0 deletions
diff --git a/Automatically-make-the-keyboard-switch-to-lowercase-after-the-first-character.md b/Automatically-make-the-keyboard-switch-to-lowercase-after-the-first-character.md
new file mode 100644
index 0000000..1787b0f
--- /dev/null
+++ b/Automatically-make-the-keyboard-switch-to-lowercase-after-the-first-character.md
@@ -0,0 +1,36 @@
+This wiki tutorial was sourced from Pokecommunity. Thanks to Jaizu for the original code!
+
+Go to **[src/naming_screen.c](https://github.com/pret/pokeemerald/blob/master/src/naming_screen.c)** and edit the function ```static bool8 KeyboardKeyHandler_Character(u8 input)```.
+
+static bool8 KeyboardKeyHandler_Character(u8 input)
+{
+ TryStartButtonFlash(BUTTON_COUNT, FALSE, FALSE);
+ if (input == INPUT_A_BUTTON)
+ {
+ bool8 textFull = AddTextCharacter();
++
++ if (sNamingScreen ->currentPage == KBPAGE_LETTERS_UPPER && GetTextEntryPosition() == 1)
++ MainState_StartPageSwap();
+
+ SquishCursor();
+ if (textFull)
+ {
+ SetInputState(INPUT_STATE_OVERRIDE);
+ sNamingScreen->state = STATE_MOVE_TO_OK_BUTTON;
+ }
+ }
+ return FALSE;
+}
+
+static bool8 KeyboardKeyHandler_Page(u8 input)
+{
+ TryStartButtonFlash(BUTTON_PAGE, TRUE, FALSE);
+ if (input == INPUT_A_BUTTON)
+ return SwapKeyboardPage();
+ else
+ return FALSE;
+}
+
+
+
+That's it! You're done! \ No newline at end of file