comparison src/video/x11/SDL_x11events.c @ 5056:8b7988f42fcb

Added the ability to get the UIKit window through the SDL API. You can also do this through the native API: UIWindow *window = [[UIApplication sharedApplication] keyWindow]; Also needed to name the union for events and window info.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 20 Jan 2011 16:05:59 -0800
parents a5b86644c208
children 25d4feb7c127
comparison
equal deleted inserted replaced
5055:2936fc46b015 5056:8b7988f42fcb
89 if (SDL_GetEventState(SDL_SYSWMEVENT) == SDL_ENABLE) { 89 if (SDL_GetEventState(SDL_SYSWMEVENT) == SDL_ENABLE) {
90 SDL_SysWMmsg wmmsg; 90 SDL_SysWMmsg wmmsg;
91 91
92 SDL_VERSION(&wmmsg.version); 92 SDL_VERSION(&wmmsg.version);
93 wmmsg.subsystem = SDL_SYSWM_X11; 93 wmmsg.subsystem = SDL_SYSWM_X11;
94 wmmsg.x11.event = xevent; 94 wmmsg.msg.x11.event = xevent;
95 SDL_SendSysWMEvent(&wmmsg); 95 SDL_SendSysWMEvent(&wmmsg);
96 } 96 }
97 97
98 data = NULL; 98 data = NULL;
99 if (videodata && videodata->windowlist) { 99 if (videodata && videodata->windowlist) {