Mercurial > sdl-ios-xcode
comparison src/video/win32/SDL_win32events.c @ 4900:69d9db65f248
Merged the Windows custom window system hooks into the union used by X11.
Added Cocoa custom window system hooks
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 27 Sep 2010 01:24:05 -0700 |
parents | d6adaafcfb10 |
children | 50d0bff24d81 |
comparison
equal
deleted
inserted
replaced
4899:5d529386db73 | 4900:69d9db65f248 |
---|---|
111 /* Send a SDL_SYSWMEVENT if the application wants them */ | 111 /* Send a SDL_SYSWMEVENT if the application wants them */ |
112 if (SDL_GetEventState(SDL_SYSWMEVENT) == SDL_ENABLE) { | 112 if (SDL_GetEventState(SDL_SYSWMEVENT) == SDL_ENABLE) { |
113 SDL_SysWMmsg wmmsg; | 113 SDL_SysWMmsg wmmsg; |
114 | 114 |
115 SDL_VERSION(&wmmsg.version); | 115 SDL_VERSION(&wmmsg.version); |
116 wmmsg.hwnd = hwnd; | 116 wmmsg.subsystem = SDL_SYSWM_WINDOWS; |
117 wmmsg.msg = msg; | 117 wmmsg.msg.win.hwnd = hwnd; |
118 wmmsg.wParam = wParam; | 118 wmmsg.msg.win.msg = msg; |
119 wmmsg.lParam = lParam; | 119 wmmsg.msg.win.wParam = wParam; |
120 wmmsg.msg.win.lParam = lParam; | |
120 SDL_SendSysWMEvent(&wmmsg); | 121 SDL_SendSysWMEvent(&wmmsg); |
121 } | 122 } |
122 | 123 |
123 /* Get the window data for the window */ | 124 /* Get the window data for the window */ |
124 data = (SDL_WindowData *) GetProp(hwnd, TEXT("SDL_WindowData")); | 125 data = (SDL_WindowData *) GetProp(hwnd, TEXT("SDL_WindowData")); |