sdlIsDeXMode function

bool sdlIsDeXMode()

Query if the application is running on a Samsung DeX docking station.

\returns true if this is a DeX docking station, false otherwise.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC bool SDLCALL SDL_IsDeXMode(void)

Implementation

bool sdlIsDeXMode() {
  final sdlIsDeXModeLookupFunction =
      libSdl3.lookupFunction<Uint8 Function(), int Function()>('SDL_IsDeXMode');
  return sdlIsDeXModeLookupFunction() == 1;
}