sdlIsTablet function system

bool sdlIsTablet()

Query if the current device is a tablet.

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

\returns true if the device is a tablet, false otherwise.

\since This function is available since SDL 3.2.0.

extern SDL_DECLSPEC bool SDLCALL SDL_IsTablet(void)

Implementation

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