sdlGetModState function

int sdlGetModState()

Get the current key modifier state for the keyboard.

\returns an OR'd combination of the modifier keys for the keyboard. See SDL_Keymod for details.

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

\since This function is available since SDL 3.1.3.

\sa SDL_GetKeyboardState \sa SDL_SetModState

extern SDL_DECLSPEC SDL_Keymod SDLCALL SDL_GetModState(void)

Implementation

int sdlGetModState() {
  final sdlGetModStateLookupFunction = libSdl3
      .lookupFunction<Uint16 Function(), int Function()>('SDL_GetModState');
  return sdlGetModStateLookupFunction();
}