sdlUpdateGamepads function

void sdlUpdateGamepads()

Manually pump gamepad updates if not using the loop.

This function is called automatically by the event loop if events are enabled. Under such circumstances, it will not be necessary to call this function.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC void SDLCALL SDL_UpdateGamepads(void)

Implementation

void sdlUpdateGamepads() {
  final sdlUpdateGamepadsLookupFunction = libSdl3
      .lookupFunction<Void Function(), void Function()>('SDL_UpdateGamepads');
  return sdlUpdateGamepadsLookupFunction();
}