sdlIsChromebook function

bool sdlIsChromebook()

Query if the application is running on a Chromebook.

\returns SDL_TRUE if this is a Chromebook, SDL_FALSE otherwise.

\since This function is available since SDL 2.0.9.

extern DECLSPEC SDL_bool SDLCALL SDL_IsChromebook(void)

Implementation

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