Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
We can't check for the screen keyboard in the event code because the …
…video system isn't fully initialized yet.
  • Loading branch information
slouken committed Nov 9, 2012
1 parent c31aec7 commit 92b2d880f1bc3d01d614e45de906f19329181f2e

File 1 of 2 in 92b2d88

@@ -125,14 +125,10 @@ SDL_StartEventLoop(void)

/* No filter to start with, process most event types */
SDL_EventOK = NULL;
SDL_EventState(SDL_TEXTINPUT, SDL_DISABLE);
SDL_EventState(SDL_TEXTEDITING, SDL_DISABLE);
SDL_EventState(SDL_SYSWMEVENT, SDL_DISABLE);

/* If text input shows UI onscreen we want to start with it disabled */
if (SDL_HasScreenKeyboardSupport()) {
SDL_EventState(SDL_TEXTINPUT, SDL_DISABLE);
SDL_EventState(SDL_TEXTEDITING, SDL_DISABLE);
}

/* Create the lock and set ourselves active */
#if !SDL_THREADS_DISABLED
if (!SDL_EventQ.lock) {

0 comments on commit 92b2d88

Please sign in to comment.