16 #ifndef __EMSCRIPTEN__
17 #include <SDL2/SDL_syswm.h>
19 #include <SDL_syswm.h>
28 std::unique_ptr<SdlNativePlatform>
31 SDL_SysWMinfo sysinfo;
32 SDL_VERSION(&sysinfo.version);
33 if (!SDL_GetWindowWMInfo(window, &sysinfo))
35 cerr <<
"Error: unable to get window manager information for the "
36 <<
"current window." << endl;
39 switch (sysinfo.subsystem)
41 #if defined(SDL_VIDEO_DRIVER_WINDOWS)
42 case SDL_SYSWM_WINDOWS:
45 #if defined(SDL_VIDEO_DRIVER_COCOA)
49 #if defined(SDL_VIDEO_DRIVER_X11)
53 case SDL_SYSWM_UNKNOWN:
55 cerr <<
"Error: unrecognized window manager system." << endl;