SDL event loop, receiving user (WM_USER) messages in Win32 p |
SDL event loop, receiving user (WM_USER) messages in Win32 p |
Sam Lantinga
Guest
|
If you're processing them from the same application, you can use SDL_USEREVENT. If you're trying to send messages to another window, you'll want to use WM_USER and then handle them in SDL_SYSWMEVENT. (I haven't tried this myself, but I think that will work)
SDL_USEREVENT is handled entirely within the SDL library within a single application (with potentially multiple threads). WM_USER can be posted to to another application's window, and runs through the Windows message queue. -Sam Lantinga, Senior Software Engineer, Blizzard Entertainment |
|||||||||||||||
|