Path: blob/main/dependencies/windows-uwp/WinRTIncludes.hpp
817 views
#pragma once1#include <SDL_main.h>23#include <windows.h>4#include <unknwn.h>5#include <restrictederrorinfo.h>6#include <hstring.h>7#include <winrt/base.h>8#include <winrt/Windows.Foundation.h>9#include <winrt/Windows.Foundation.Collections.h>10#include <winrt/Windows.ApplicationModel.Core.h>11#include <winrt/Windows.ApplicationModel.Activation.h>12#include <winrt/Windows.UI.h>13#include <winrt/Windows.UI.Core.h>14#include <winrt/Windows.UI.Input.h>15#include <winrt/Windows.Devices.Input.h>16#include <winrt/Windows.Storage.h>1718inline char *getResourcesPath()19{20static char resourcePath[256] = { 0 };2122if (strlen(resourcePath) == 0) {23auto folder = winrt::Windows::Storage::ApplicationData::Current().LocalFolder();24auto path = to_string(folder.Path());2526std::copy(path.begin(), path.end(), resourcePath);27}2829return resourcePath;30}3132inline uint UAP_GetRetroGamePlatform()33{34auto touchCaps = winrt::Windows::Devices::Input::TouchCapabilities();35return touchCaps.TouchPresent() ? RETRO_MOBILE : RETRO_STANDARD;36}373839