src/core/winrt/SDL_winrtapp_direct3d.cpp
changeset 9240 dc4ad21d8596
parent 8757 aeeeb47a5a77
child 9256 9c45fc8605d9
     1.1 --- a/src/core/winrt/SDL_winrtapp_direct3d.cpp	Tue Nov 25 22:37:12 2014 +0100
     1.2 +++ b/src/core/winrt/SDL_winrtapp_direct3d.cpp	Wed Nov 26 21:34:15 2014 -0500
     1.3 @@ -365,6 +365,9 @@
     1.4      window->KeyUp +=
     1.5          ref new TypedEventHandler<CoreWindow^, KeyEventArgs^>(this, &SDL_WinRTApp::OnKeyUp);
     1.6  
     1.7 +    window->CharacterReceived +=
     1.8 +        ref new TypedEventHandler<CoreWindow^, CharacterReceivedEventArgs^>(this, &SDL_WinRTApp::OnCharacterReceived);
     1.9 +
    1.10  #if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
    1.11      HardwareButtons::BackPressed +=
    1.12          ref new EventHandler<BackPressedEventArgs^>(this, &SDL_WinRTApp::OnBackButtonPressed);
    1.13 @@ -703,6 +706,11 @@
    1.14      WINRT_ProcessKeyUpEvent(args);
    1.15  }
    1.16  
    1.17 +void SDL_WinRTApp::OnCharacterReceived(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::CharacterReceivedEventArgs^ args)
    1.18 +{
    1.19 +    WINRT_ProcessCharacterReceivedEvent(args);
    1.20 +}
    1.21 +
    1.22  #if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
    1.23  void SDL_WinRTApp::OnBackButtonPressed(Platform::Object^ sender, Windows::Phone::UI::Input::BackPressedEventArgs^ args)
    1.24  {