sdlGetModState function keyboard

int sdlGetModState()

Get the current key modifier state for the keyboard.

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

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

\since This function is available since SDL 3.2.0.

\sa SDL_GetKeyboardState \sa SDL_SetModState

extern SDL_DECLSPEC SDL_Keymod SDLCALL SDL_GetModState(void)

Implementation

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