Mercurial > sdl-ios-xcode
comparison src/video/win32/SDL_win32events.c @ 4429:faa9fc8e7f67
General improvements for user custom event registration
* Switched event type to enum (int32)
* Switched polling by mask to polling by type range
* Added SDL_RegisterEvents() to allow dynamic user event registration
* Spread events out to allow inserting new related events without breaking binary compatibility
* Added padding to event structures so they're the same size regardless of 32-bit compiler structure packing settings
* Split SDL_HasEvent() to SDL_HasEvent() for a single event and SDL_HasEvents() for a range of events
* Added SDL_GetEventState() as a shortcut for SDL_EventState(X, SDL_QUERY)
* Added SDL_FlushEvent() and SDL_FlushEvents() to clear events from the event queue
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 25 Mar 2010 01:08:26 -0700 |
parents | 076c12750bc4 |
children | 3e69e077cb95 7ad7a473b086 983eb9d5ed31 0bfda420c936 |
comparison
equal
deleted
inserted
replaced
4428:68dfd6df47da | 4429:faa9fc8e7f67 |
---|---|
107 RAWINPUT *raw; | 107 RAWINPUT *raw; |
108 PACKET packet; | 108 PACKET packet; |
109 LRESULT returnCode = -1; | 109 LRESULT returnCode = -1; |
110 | 110 |
111 /* Send a SDL_SYSWMEVENT if the application wants them */ | 111 /* Send a SDL_SYSWMEVENT if the application wants them */ |
112 if (SDL_ProcessEvents[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.hwnd = hwnd; |
117 wmmsg.msg = msg; | 117 wmmsg.msg = msg; |