SDL_WasInit
Use this function to return a mask of the specified subsystems which have previously been initialized.
Syntax
Uint32 SDL_WasInit(Uint32 flags)
Function Parameters
Return Value
If flags is 0 it returns a mask of all initialized subsystems, otherwise it returns the initialization status of the specified subsystems.
Code Examples
You can add your code example here
Remarks
These are the flags which may be passed to SDL_WasInit() and may be OR'd together to query multiple, specific subsystems simultaneously.
)>>
SDL_INIT_TIMER |
initialize timer subsystem |
SDL_INIT_AUDIO |
initialize audio subsystem |
SDL_INIT_VIDEO |
initialize video subsystem |
SDL_INIT_CDROM |
initialize CD-ROM subsystem |
SDL_INIT_JOYSTICK |
initialize joystick subsystem |
SDL_INIT_HAPTIC |
initialize haptic (force feedback) subsystem |
SDL_INIT_EVERYTHING |
initialize all of the above subsystems |
SDL_INIT_NOPARACHUTE |
don't catch fatal signals |
SDL_INIT_EVENTTHREAD |
run the event loop in a separate thread (not supported by all OSs) |