为了向SDL_AddEventWatch注册事件回调,你需要以SDL_EventFilter类型的函数的形式提供一个回调:...
SetState(SDL_VIDEOEXPOSE,false);#ifSDL_VERSION_ATLEAST(1, 3, 0)SDL_SetEventFilter(GlobalFilterEvents,NULL);#elseSDL_SetEventFilter(GlobalFilterEvents);#endif} 开发者ID:mastermind-,项目名称:free-heroes,代码行数:28,代码来源:localevent.cpp 示例2: SDL_SetEventFilter ▲点赞 5▼ voidGerenciadorDeE...