src/core/winrt/SDL_winrtapp_direct3d.cpp
changeset 9240 dc4ad21d8596
parent 8757 aeeeb47a5a77
child 9256 9c45fc8605d9
--- a/src/core/winrt/SDL_winrtapp_direct3d.cpp	Tue Nov 25 22:37:12 2014 +0100
+++ b/src/core/winrt/SDL_winrtapp_direct3d.cpp	Wed Nov 26 21:34:15 2014 -0500
@@ -365,6 +365,9 @@
     window->KeyUp +=
         ref new TypedEventHandler<CoreWindow^, KeyEventArgs^>(this, &SDL_WinRTApp::OnKeyUp);
 
+    window->CharacterReceived +=
+        ref new TypedEventHandler<CoreWindow^, CharacterReceivedEventArgs^>(this, &SDL_WinRTApp::OnCharacterReceived);
+
 #if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
     HardwareButtons::BackPressed +=
         ref new EventHandler<BackPressedEventArgs^>(this, &SDL_WinRTApp::OnBackButtonPressed);
@@ -703,6 +706,11 @@
     WINRT_ProcessKeyUpEvent(args);
 }
 
+void SDL_WinRTApp::OnCharacterReceived(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::CharacterReceivedEventArgs^ args)
+{
+    WINRT_ProcessCharacterReceivedEvent(args);
+}
+
 #if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
 void SDL_WinRTApp::OnBackButtonPressed(Platform::Object^ sender, Windows::Phone::UI::Input::BackPressedEventArgs^ args)
 {