-
-
Notifications
You must be signed in to change notification settings - Fork 291
Use code point on OnTextInput #517
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
base: master
Are you sure you want to change the base?
Conversation
I might be mixing up types here but what we're intending to do with the current code is convert from UTF8 to wchar_t, which is what |
@flibitijibibo No, I'm sorry, I don't have console. So I can't test for console. |
For example, |
Interesting - I wonder if this is a serious problem for platforms where sizeof(wchar_t) is 2 rather than 4. The overall purpose of the patch makes sense to me but I'm surprised it requires so much manual intervention - should we isolate translation to a helper file maybe? Is this something upstream dotnet should care about? |
@flibitijibibo |
Understood - I've marked this as an extension bug for the moment; if it works locally that's great, but I assume this subject has a bunch of weird caveats so I'll let others chime in to make sure we get the next revision of TextInputEXT correct, since it's hard to modify extensions unless we're really sure the change is both necessary and absolutely correct. Expect some reviews over time, either way: Thanks for checking this out! |
In SDL2/3, text input event will only return a complete unicode character. If this part use char in csharp, It can't explane a complete unicode character at one times.