Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IME Support for WindowsDX build #537

Merged
merged 36 commits into from
Feb 3, 2025
Merged

Conversation

frg2089
Copy link
Contributor

@frg2089 frg2089 commented Mar 17, 2024

🎉 IME Support for WindowsDX only (WindowsXNA build also works, but occasionally it might have a chance to crash, so the IME support for WindowsXNA build has been disabled)

Close: #522

Link

Copy link

github-actions bot commented Mar 17, 2024

Nightly build for this pull request:

@frg2089 frg2089 force-pushed the feat/ime-preview branch from d38a6ba to 17d1513 Compare June 2, 2024 10:40
@SadPencil SadPencil added this to the 2.11.0.0 milestone Aug 19, 2024
Signed-off-by: 舰队的偶像-岛风酱! <[email protected]>
DX  XNA (WinForms base) Only
OGL UGL (SDL base) are not support

Signed-off-by: 舰队的偶像-岛风酱! <[email protected]>
@SadPencil SadPencil marked this pull request as draft January 23, 2025 12:47
@SadPencil SadPencil marked this pull request as ready for review January 24, 2025 10:30
@SadPencil
Copy link
Member

SadPencil commented Jan 24, 2025

Ready for review but requires Rampastring/Rampastring.XNAUI#36 to be merged and released first

@SadPencil SadPencil marked this pull request as draft January 24, 2025 10:48
@SadPencil SadPencil changed the title IME Support for DX and XNA IME Support for DX Jan 24, 2025
@SadPencil SadPencil changed the title IME Support for DX IME Support for WindowsDX build Jan 24, 2025
@SadPencil SadPencil marked this pull request as ready for review January 28, 2025 16:27
@SadPencil SadPencil requested a review from Metadorius January 28, 2025 16:29
@SadPencil SadPencil modified the milestones: long term, 2.11.7.0 Jan 28, 2025
Copy link
Member

@Metadorius Metadorius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nitpicks.

@SadPencil @frg2089 I am not really knowledgeable about IME itself, so I'll leave that to you.

An issue should be created to track OpenGL and XNA builds IME status though.

ClientGUI/IME/IMEHandler.cs Outdated Show resolved Hide resolved
ClientGUI/IME/IMEHandler.cs Outdated Show resolved Hide resolved
ClientGUI/IME/IMEHandler.cs Outdated Show resolved Hide resolved
ClientGUI/IME/IMEHandler.cs Outdated Show resolved Hide resolved
Comment on lines 115 to 117
// The following code returns a more accurate location, aware of the input cursor
// However, it requires SetIMETextInputRectangle() be called whenever InputPosition is changed.
// And therefore, it's commented out for now.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not clear why you can't just call that

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment updated.
If we apply this code, sometimes it's precise, other times it's worse than the inaccurate codes (due to outdated InputPosition). Such an inconsistent behavior is worse than a consistent but manageable inaccuracy.

@SadPencil
Copy link
Member

Plan to hit the merge button after 24 hours.

@SadPencil SadPencil merged commit 7c02b0d into CnCNet:develop Feb 3, 2025
3 checks passed
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.

IME support for East Asia users
3 participants