wasInit

Wraps SDL_WasInit which checks whether particular subsystem(s) is already initialized

@safe @trusted
bool
wasInit
(
bool timer = false
,
bool audio = false
,
bool video = false
,
bool joystick = false
,
bool haptic = false
,
bool gameController = false
,
bool events = false
,
bool everything = false
,
bool noParachute = false
,
bool sensor = false
)

Parameters

timer bool

selects the SDL_INIT_TIMER subsystem

audio bool

selects the SDL_INIT_AUDIO subsystem

video bool

selects the SDL_INIT_VIDEO subsystem

joystick bool

selects the SDL_INIT_JOYSTICK subsystem

haptic bool

selects the SDL_INIT_HAPTIC subsystem

gameController bool

selects the SDL_INIT_GAMECONTROLLER subsystem

events bool

selects the SDL_INIT_EVENTS subsystem

everything bool

selects the SDL_INIT_EVERYTHING subsystem

noParachute bool

selects the SDL_INIT_NOPARACHUTE subsystem

sensor bool

selects the SDL_INIT_SENSOR subsystem (from SDL 2.0.9)

Return Value

Type: bool

true if the selected subsystem(s) is initialized, otherwise false

Examples

dsdl2.init();
assert(dsdl2.wasInit(video : true) == true);

Meta