Disable the SDL event pump after the SDL main routine returns, since events will be dispatched by the Cocoa event loop.

This commit is contained in:
Sam Lantinga 2012-06-25 11:10:34 -04:00
parent 909cf0f0b4
commit 655622dc62
3 changed files with 15 additions and 0 deletions

View file

@ -43,6 +43,7 @@ extern "C" {
#include "SDL_video.h"
extern DECLSPEC int SDLCALL SDL_iPhoneSetAnimationCallback(SDL_Window * window, int interval, void (*callback)(void*), void *callbackParam);
extern DECLSPEC void SDLCALL SDL_iPhoneSetEventPump(SDL_bool enabled);
extern DECLSPEC int SDLCALL SDL_iPhoneKeyboardShow(SDL_Window * window);
extern DECLSPEC int SDLCALL SDL_iPhoneKeyboardHide(SDL_Window * window);