|
@@ -365,6 +365,9 @@ void SDL_WinRTApp::SetWindow(CoreWindow^ window)
|
|
|
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 @@ void SDL_WinRTApp::OnKeyUp(Windows::UI::Core::CoreWindow^ sender, Windows::UI::C
|
|
|
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)
|
|
|
{
|