Skip to content

Conversation

@y5nw
Copy link
Contributor

@y5nw y5nw commented Dec 19, 2025

This PR passes the (relative) X position of the cursor to SDL_SetTextInputArea. This allows (for example) IMEs to place the candidate list in a way that "follows" the cursor.

  • How does the PR work?
    This PR extracts the X position of the cursor to a variable that is exposed with the getTextInputCursorPosition() method.
  • Does it resolve any reported issue?
    No.
  • Does this relate to a goal in the roadmap?
    No.
  • If not a bug fix, why is this PR needed? What usecases does it solve?
    This is a minor UI improvement.

To do

This PR is a Work in Progress.

  • CGUIEditBox
  • GUIChatConsole

How to test

Enter text with an IME and observe that the candidate list "moves" along with the cursor.

@y5nw y5nw added Feature ✨ PRs that add or enhance a feature @ Client / Controls / Input UI/UX labels Dec 19, 2025
@y5nw y5nw changed the title SDL3: pass X position of cursor to SDL_SetTextInputArea SDL3: pass X position of text cursor to SDL_SetTextInputArea Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant