sdlIsTv function

bool sdlIsTv()

Query if the current device is a TV.

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

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

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC bool SDLCALL SDL_IsTV(void)

Implementation

bool sdlIsTv() {
  final sdlIsTvLookupFunction =
      libSdl3.lookupFunction<Uint8 Function(), int Function()>('SDL_IsTV');
  return sdlIsTvLookupFunction() == 1;
}