sdlIsChromebook function

bool sdlIsChromebook()

Query if the application is running on a Chromebook.

\returns true if this is a Chromebook, false otherwise.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC bool SDLCALL SDL_IsChromebook(void)

Implementation

bool sdlIsChromebook() {
  final sdlIsChromebookLookupFunction = libSdl3
      .lookupFunction<Uint8 Function(), int Function()>('SDL_IsChromebook');
  return sdlIsChromebookLookupFunction() == 1;
}