SDL_!InitSubSystem?
NAME SYNOPSIS DESCRIPTION EXAMPLES RETURN VALUE SEE ALSO
SDL_!InitSubSystem?- Initialize subsystems
#include
int SDL_!InitSubSystem?(Uint32 flags);
After SDL has been initialized with SDL_Init you may initialize uninitialized subsystems with SDL_!InitSubSystem?. The flags parameter is the same as that used in SDL_Init.
/* Seperating Joystick and Video initialization. / SDL_Init(SDL_INIT_VIDEO); . . SDL_!SetVideoMode?(640, 480, 16, SDL_DOUBLEBUF|SDL_FULLSCREEN); . / Do Some Video stuff / . . / Initialize the joystick subsystem / SDL_!InitSubSystem?(SDL_INIT_JOYSTICK); / Do some stuff with video and joystick / . . . / Shut them both down */ SDL_Quit();
Returns -1 on an error or 0 on success.
SDL_Init, SDL_Quit, SDL_!QuitSubSystem?
One page links to SDL_InitSubSystem(3):