diff --git a/VisualC-WinPhone/SDL/SDL_VS2012-WinPhone.vcxproj b/VisualC-WinPhone/SDL/SDL_VS2012-WinPhone.vcxproj
index 474039e85..fce026f16 100644
--- a/VisualC-WinPhone/SDL/SDL_VS2012-WinPhone.vcxproj
+++ b/VisualC-WinPhone/SDL/SDL_VS2012-WinPhone.vcxproj
@@ -197,8 +197,8 @@
-
-
+
+
@@ -269,7 +269,13 @@
true
-
+
+ true
+ true
+ true
+ true
+
+
true
true
true
@@ -281,12 +287,6 @@
true
true
-
- true
- true
- true
- true
-
diff --git a/VisualC-WinPhone/SDL/SDL_VS2012-WinPhone.vcxproj.filters b/VisualC-WinPhone/SDL/SDL_VS2012-WinPhone.vcxproj.filters
index 2b5524e9c..9e2d8ee27 100644
--- a/VisualC-WinPhone/SDL/SDL_VS2012-WinPhone.vcxproj.filters
+++ b/VisualC-WinPhone/SDL/SDL_VS2012-WinPhone.vcxproj.filters
@@ -321,24 +321,24 @@
Source Files
-
- Source Files
-
Source Files
Source Files
-
- Source Files
-
Source Files
Header Files
+
+ Source Files
+
+
+ Source Files
+
@@ -581,9 +581,6 @@
Source Files
-
- Source Files
-
Source Files
@@ -599,10 +596,13 @@
Source Files
-
+
Source Files
-
+
+ Source Files
+
+
Source Files
diff --git a/VisualC-WinRT/SDL/SDL_VS2012-WinRT.vcxproj b/VisualC-WinRT/SDL/SDL_VS2012-WinRT.vcxproj
index 66bdee538..c383a2615 100644
--- a/VisualC-WinRT/SDL/SDL_VS2012-WinRT.vcxproj
+++ b/VisualC-WinRT/SDL/SDL_VS2012-WinRT.vcxproj
@@ -47,7 +47,15 @@
true
-
+
+ true
+ true
+ true
+ true
+ true
+ true
+
+
true
true
true
@@ -63,14 +71,6 @@
true
true
-
- true
- true
- true
- true
- true
- true
-
@@ -244,8 +244,8 @@
-
-
+
+
diff --git a/VisualC-WinRT/SDL/SDL_VS2012-WinRT.vcxproj.filters b/VisualC-WinRT/SDL/SDL_VS2012-WinRT.vcxproj.filters
index 4c22c3f81..fad8ce82b 100644
--- a/VisualC-WinRT/SDL/SDL_VS2012-WinRT.vcxproj.filters
+++ b/VisualC-WinRT/SDL/SDL_VS2012-WinRT.vcxproj.filters
@@ -258,9 +258,6 @@
Source Files
-
- Source Files
-
Source Files
@@ -273,7 +270,10 @@
Source Files
-
+
+ Source Files
+
+
Source Files
@@ -593,21 +593,21 @@
Source Files
-
- Source Files
-
Source Files
-
- Source Files
-
Source Files
Header Files
+
+ Source Files
+
+
+ Source Files
+
diff --git a/src/core/winrt/SDL_winrtapp.cpp b/src/core/winrt/SDL_winrtapp_direct3d.cpp
similarity index 97%
rename from src/core/winrt/SDL_winrtapp.cpp
rename to src/core/winrt/SDL_winrtapp_direct3d.cpp
index f421ea45e..7bcd528d7 100644
--- a/src/core/winrt/SDL_winrtapp.cpp
+++ b/src/core/winrt/SDL_winrtapp_direct3d.cpp
@@ -38,7 +38,7 @@ extern "C" {
#include "../../video/winrt/SDL_winrtevents_c.h"
#include "../../video/winrt/SDL_winrtvideo_cpp.h"
-#include "SDL_winrtapp.h"
+#include "SDL_winrtapp_direct3d.h"
// Compile-time debugging options:
diff --git a/src/core/winrt/SDL_winrtapp.h b/src/core/winrt/SDL_winrtapp_direct3d.h
similarity index 100%
rename from src/core/winrt/SDL_winrtapp.h
rename to src/core/winrt/SDL_winrtapp_direct3d.h
diff --git a/src/core/winrt/SDL_winrtxaml.cpp b/src/core/winrt/SDL_winrtapp_xaml.cpp
similarity index 99%
rename from src/core/winrt/SDL_winrtxaml.cpp
rename to src/core/winrt/SDL_winrtapp_xaml.cpp
index 42500c3b5..055569377 100644
--- a/src/core/winrt/SDL_winrtxaml.cpp
+++ b/src/core/winrt/SDL_winrtapp_xaml.cpp
@@ -32,7 +32,7 @@
#include "SDL.h"
#include "../../video/winrt/SDL_winrtevents_c.h"
#include "../../video/winrt/SDL_winrtvideo_cpp.h"
-#include "SDL_winrtxaml_cpp.h"
+#include "SDL_winrtapp_xaml.h"
@@ -51,28 +51,28 @@ static Windows::Foundation::EventRegistrationToken WINRT_XAMLAppEventToken;
*/
#if WINAPI_FAMILY == WINAPI_FAMILY_APP
-static void
-WINRT_OnPointerPressedViaXAML(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ args)
-{
- WINRT_ProcessPointerPressedEvent(WINRT_GlobalSDLWindow, args->GetCurrentPoint(nullptr));
+static void
+WINRT_OnPointerPressedViaXAML(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ args)
+{
+ WINRT_ProcessPointerPressedEvent(WINRT_GlobalSDLWindow, args->GetCurrentPoint(nullptr));
}
-static void
-WINRT_OnPointerMovedViaXAML(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ args)
-{
- WINRT_ProcessPointerMovedEvent(WINRT_GlobalSDLWindow, args->GetCurrentPoint(nullptr));
+static void
+WINRT_OnPointerMovedViaXAML(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ args)
+{
+ WINRT_ProcessPointerMovedEvent(WINRT_GlobalSDLWindow, args->GetCurrentPoint(nullptr));
}
-static void
-WINRT_OnPointerReleasedViaXAML(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ args)
-{
- WINRT_ProcessPointerReleasedEvent(WINRT_GlobalSDLWindow, args->GetCurrentPoint(nullptr));
+static void
+WINRT_OnPointerReleasedViaXAML(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ args)
+{
+ WINRT_ProcessPointerReleasedEvent(WINRT_GlobalSDLWindow, args->GetCurrentPoint(nullptr));
}
-static void
-WINRT_OnPointerWheelChangedViaXAML(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ args)
-{
- WINRT_ProcessPointerWheelChangedEvent(WINRT_GlobalSDLWindow, args->GetCurrentPoint(nullptr));
+static void
+WINRT_OnPointerWheelChangedViaXAML(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ args)
+{
+ WINRT_ProcessPointerWheelChangedEvent(WINRT_GlobalSDLWindow, args->GetCurrentPoint(nullptr));
}
#endif // WINAPI_FAMILY == WINAPI_FAMILY_APP
@@ -128,7 +128,7 @@ SDL_WinRTInitXAMLApp(Platform::Object ^backgroundPanel, int (*mainFunction)(int,
swapChainBackgroundPanel->PointerMoved += ref new PointerEventHandler(WINRT_OnPointerMovedViaXAML);
// Setup for rendering:
- IInspectable *panelInspectable = (IInspectable*) reinterpret_cast(swapChainBackgroundPanel);
+ IInspectable *panelInspectable = (IInspectable*) reinterpret_cast(swapChainBackgroundPanel);
panelInspectable->QueryInterface(__uuidof(ISwapChainBackgroundPanelNative), (void **)&WINRT_GlobalSwapChainBackgroundPanelNative);
WINRT_XAMLAppEventToken = CompositionTarget::Rendering::add(ref new EventHandler