src/events/SDL_events.c
branchSDL-1.3
changeset 1666 6e7ec5cb83c3
parent 1662 782fd950bd46
child 1668 4da1ee79c9af
equal deleted inserted replaced
1665:28193f833b2b 1666:6e7ec5cb83c3
   217 {
   217 {
   218     /* Halt the event thread, if running */
   218     /* Halt the event thread, if running */
   219     SDL_StopEventThread ();
   219     SDL_StopEventThread ();
   220 
   220 
   221     /* Shutdown event handlers */
   221     /* Shutdown event handlers */
   222     SDL_AppActiveQuit ();
       
   223     SDL_KeyboardQuit ();
   222     SDL_KeyboardQuit ();
   224     SDL_MouseQuit ();
   223     SDL_MouseQuit ();
   225     SDL_QuitQuit ();
   224     SDL_QuitQuit ();
   226 
   225 
   227     /* Clean out EventQ */
   226     /* Clean out EventQ */
   249     SDL_eventstate &= ~(0x00000001 << SDL_SYSWMEVENT);
   248     SDL_eventstate &= ~(0x00000001 << SDL_SYSWMEVENT);
   250     SDL_ProcessEvents[SDL_SYSWMEVENT] = SDL_IGNORE;
   249     SDL_ProcessEvents[SDL_SYSWMEVENT] = SDL_IGNORE;
   251 
   250 
   252     /* Initialize event handlers */
   251     /* Initialize event handlers */
   253     retcode = 0;
   252     retcode = 0;
   254     retcode += SDL_AppActiveInit ();
       
   255     retcode += SDL_KeyboardInit ();
   253     retcode += SDL_KeyboardInit ();
   256     retcode += SDL_MouseInit ();
   254     retcode += SDL_MouseInit ();
   257     retcode += SDL_QuitInit ();
   255     retcode += SDL_QuitInit ();
   258     if (retcode < 0) {
   256     if (retcode < 0) {
   259         /* We don't expect them to fail, but... */
   257         /* We don't expect them to fail, but... */