I’m integrating Nvidia PCL stats into a SDL application.
One of challenges is handling of a custom windows message in message loop. The message is used to measure input latency.
So my question is:
Can I handle this windows message trough SDL_Event somehow, or is the only way to override WndProc() function?
You can install message hook callback and receive all Windows messages in it. Just use the SDL_SetWindowsMessageHook() and provide a pointer to the callback function.
I’m using such hook to catch modal loop messages (menu and sizing loops) and it works like a charm.