X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2Finit.cpp;h=a0ea7b51ba5d614a3df13814c4eee90468d6fe1d;hb=04bca2c5e74df466312c69abadf38e1f84aa70a9;hp=81c2e9291cec57c61d039e223922c73d52adf8fd;hpb=9ebe2c320fd9f94266ab93fa2f9d9908a0a284d3;p=blank.git diff --git a/src/app/init.cpp b/src/app/init.cpp index 81c2e92..a0ea7b5 100644 --- a/src/app/init.cpp +++ b/src/app/init.cpp @@ -77,8 +77,8 @@ SDLError::SDLError(const std::string &msg) 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)"); } } @@ -91,6 +91,8 @@ InitVideo::InitVideo() { 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() {