Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

SDL_GetModState - Get the current key modifier state for the keyboard.

Availability

       This function is available since SDL 3.2.0.

Header File

       Defined in SDL3/SDL_keyboard.h

Name

       SDL_GetModState - Get the current key modifier state for the keyboard.

Return Value

       ( SDL_Keymod ) Returns an OR'd combination of the modifier keys for the keyboard. See SDL_Keymod
        for details.

See Also

(3), SDL_GetKeyboardState(3), (3), SDL_SetModState(3)

Simple Directmedia Layer                           SDL 3.2.10                                 SDL_GetModState(3)

Synopsis

#include"SDL3/SDL.h"SDL_KeymodSDL_GetModState(void);

Thread Safety

       It is safe to call this function from any thread.

See Also