UWP: Add support for supplementary Unicode characters input

Characters outside Basic Multilingual Plane (BMP) are coded as so called "surrogate pair" in two separate UTF-16 character events.
This commit is contained in:
Dimitriy Ryazantcev
2023-11-27 17:23:17 +02:00
committed by Sam Lantinga
parent 7b628ea4d5
commit 9faa7977bd
6 changed files with 31 additions and 14 deletions

View File

@@ -724,7 +724,7 @@ void SDL_WinRTApp::OnAcceleratorKeyActivated(Windows::UI::Core::CoreDispatcher ^
void SDL_WinRTApp::OnCharacterReceived(Windows::UI::Core::CoreWindow ^ sender, Windows::UI::Core::CharacterReceivedEventArgs ^ args)
{
WINRT_ProcessCharacterReceivedEvent(args);
WINRT_ProcessCharacterReceivedEvent(WINRT_GlobalSDLWindow, args);
}
template <typename BackButtonEventArgs>