sdlIsTablet function

bool sdlIsTablet()

Query if the current device is a tablet.

If SDL can't determine this, it will return SDL_FALSE.

\returns SDL_TRUE if the device is a tablet, SDL_FALSE otherwise.

\since This function is available since SDL 2.0.9.

extern DECLSPEC SDL_bool SDLCALL SDL_IsTablet(void)

Implementation

bool sdlIsTablet() {
  final sdlIsTabletLookupFunction =
      libSdl2.lookupFunction<Int32 Function(), int Function()>('SDL_IsTablet');
  return sdlIsTabletLookupFunction() == 1;
}