sdlDelay function

void sdlDelay(
  1. int ms
)

Wait a specified number of milliseconds before returning.

This function waits a specified number of milliseconds before returning. It waits at least the specified time, but possibly longer due to OS scheduling.

\param ms the number of milliseconds to delay

\since This function is available since SDL 2.0.0.

extern DECLSPEC void SDLCALL SDL_Delay(Uint32 ms)

Implementation

void sdlDelay(int ms) {
  final sdlDelayLookupFunction =
      libSdl2.lookupFunction<Void Function(Uint32 ms), void Function(int ms)>(
          'SDL_Delay');
  return sdlDelayLookupFunction(ms);
}