InitSDL::InitSDL() {
- if (SDL_Init(0) != 0) {
- throw SDLError("SDL_Init(0)");
+ if (SDL_Init(SDL_INIT_EVENTS) != 0) {
+ throw SDLError("SDL_Init(SDL_INIT_EVENTS)");
}
}
if (SDL_InitSubSystem(SDL_INIT_VIDEO) != 0) {
throw SDLError("SDL_InitSubSystem(SDL_INIT_VIDEO)");
}
+ // SDL seems to start out in text input state
+ SDL_StopTextInput();
}
InitVideo::~InitVideo() {