sdlUpdateGamepads function gamepad

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.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.2.0.

extern SDL_DECLSPEC void SDLCALL SDL_UpdateGamepads(void)

Implementation

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