|
@@ -259,6 +259,9 @@ void SDL_WinRTApp::Initialize(CoreApplicationView^ applicationView)
|
|
|
CoreApplication::Resuming +=
|
|
|
ref new EventHandler<Platform::Object^>(this, &SDL_WinRTApp::OnResuming);
|
|
|
|
|
|
+ CoreApplication::Exiting +=
|
|
|
+ ref new EventHandler<Platform::Object^>(this, &SDL_WinRTApp::OnExiting);
|
|
|
+
|
|
|
DisplayProperties::OrientationChanged +=
|
|
|
ref new DisplayPropertiesEventHandler(this, &SDL_WinRTApp::OnOrientationChanged);
|
|
|
|
|
@@ -578,6 +581,11 @@ void SDL_WinRTApp::OnResuming(Platform::Object^ sender, Platform::Object^ args)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+void SDL_WinRTApp::OnExiting(Platform::Object^ sender, Platform::Object^ args)
|
|
|
+{
|
|
|
+ SDL_SendAppEvent(SDL_APP_TERMINATING);
|
|
|
+}
|
|
|
+
|
|
|
static void
|
|
|
WINRT_LogPointerEvent(const char * header, Windows::UI::Core::PointerEventArgs ^ args, Windows::Foundation::Point transformedPoint)
|
|
|
{
|