sdlWinRtGetDeviceFamily function

int sdlWinRtGetDeviceFamily()

Detects the device family of WinRT platform at runtime.

\returns a value from the SDL_WinRT_DeviceFamily enum.

\since This function is available since SDL 2.0.8.

extern DECLSPEC SDL_WinRT_DeviceFamily SDLCALL SDL_WinRTGetDeviceFamily()

Implementation

int sdlWinRtGetDeviceFamily() {
  final sdlWinRtGetDeviceFamilyLookupFunction =
      libSdl2.lookupFunction<Int32 Function(), int Function()>(
          'SDL_WinRTGetDeviceFamily');
  return sdlWinRtGetDeviceFamilyLookupFunction();
}