Skip to content

[3DS] Update text input state using data from the on-screen keyboard - #8663

Merged
glebm merged 1 commit into
diasurgical:masterfrom
StephenCWills:fix-3ds-text-input
Aug 9, 2026
Merged

[3DS] Update text input state using data from the on-screen keyboard#8663
glebm merged 1 commit into
diasurgical:masterfrom
StephenCWills:fix-3ds-text-input

Conversation

@StephenCWills

Copy link
Copy Markdown
Member

Fixes an issue on 3DS where it was impossible to proceed through any menu where the initial value is empty and empty values are not allowed.

Because the 3DS uses SDL1, it is unable to update text input state via SDL_EVENT_TEXT_INPUT events. Instead, it was updating the underlying char array, which appears to work because it gets properly rendered on-screen. But the TextInputState object also tracks the length of the user input, which wasn't getting updated properly so the length of the initial value was used for validation instead of the length of the user input.

Instead of updating the underlying char array directly, this PR uses a callback to update text input state via the TextInputState::assign() function.

@glebm
glebm enabled auto-merge (rebase) August 9, 2026 09:13
@glebm
glebm merged commit 7519b38 into diasurgical:master Aug 9, 2026
25 checks passed
@StephenCWills
StephenCWills deleted the fix-3ds-text-input branch August 9, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants