Mercurial > sdl-ios-xcode
diff src/video/win32/SDL_win32events.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 | 28003ba91f57 |
children |
line wrap: on
line diff
--- a/src/video/win32/SDL_win32events.c Thu Jan 20 11:51:23 2011 -0500 +++ b/src/video/win32/SDL_win32events.c Thu Jan 20 16:05:59 2011 -0800 @@ -113,10 +113,10 @@ SDL_VERSION(&wmmsg.version); wmmsg.subsystem = SDL_SYSWM_WINDOWS; - wmmsg.win.hwnd = hwnd; - wmmsg.win.msg = msg; - wmmsg.win.wParam = wParam; - wmmsg.win.lParam = lParam; + wmmsg.msg.win.hwnd = hwnd; + wmmsg.msg.win.msg = msg; + wmmsg.msg.win.wParam = wParam; + wmmsg.msg.win.lParam = lParam; SDL_SendSysWMEvent(&wmmsg); }