blob: 374f01d278045a65a5386365e9960ea8a93dd768 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
Before following this tutorial, please make sure your copy of pokeemerald has [this commit](https://github.com/pret/pokeemerald/commit/463d79c7c1b945db53b1d4278e3e05a65bbe1ee1#diff-138aab24ea0a6ec9cb8e839962b916f7) applied to it.
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)```.
```diff
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!
|