The messages I send with the standard SendMessage function get captured in
the app (and printed to the console from above), however I cannot seem to be
able to retrieve the msg and params. Am I going about this the right way?
What should I be getting from even for these values?
NC> The messages I send with the standard SendMessage function get captured in
NC> the app (and printed to the console from above), however I cannot seem to be
NC> able to retrieve the msg and params. Am I going about this the right way?
NC> What should I be getting from even for these values?
That SDL_Event * will really be a SDL_SysWMEvent *
This has a SDL_SysWMmsg * field which on Win32 will point to a struct
containing the HWND, the message as UINT, WPARAM and LPARAM. You’ll
need to include SDL_syswm.h to get it.
So you want something like:
int FilterEvents(const SDL_Event *event)
{
if (event.type == SDL_SYSWMEVENT)
{
SDL_SysWMmsg *wmmsg;
wmmsg = event.syswm.msg;
// Do what you like with the fields of wmmsg here
}