Add MacOS Platform

Use MacOS Standard Fullscreen hotkey
This commit is contained in:
Hibyehello
2023-02-01 18:00:12 -06:00
parent 6743ca8e09
commit 8324a85339
4 changed files with 451 additions and 0 deletions

View File

@ -168,6 +168,10 @@ static std::unique_ptr<Platform> GetPlatform(const optparse::Values& options)
if (platform_name == "win32" || platform_name.empty())
return Platform::CreateWin32Platform();
#endif
#ifdef __APPLE__
if (platform_name == "macos" || platform_name.empty())
return Platform::CreateMacOSPlatform();
#endif
if (platform_name == "headless" || platform_name.empty())
return Platform::CreateHeadlessPlatform();
@ -198,6 +202,10 @@ int main(int argc, char* argv[])
#ifdef _WIN32
,
"win32"
#endif
#ifdef __APPLE__
,
"macos"
#endif
});