Windows Events

Hi all,
I was looking around about getting Windows events in my code, but I’m
able to poll SDL events only. How could I get external events? Thank you
in advance for your help.

Marco

Marco Pacifico wrote:

Hi all,
I was looking around about getting Windows events in my code, but
I’m able to poll SDL events only. How could I get external events?
Thank you in advance for your help.

Marco

One thing I think that you could dig in and find the answers to your
questions, is Nehe’s site ( nehe.gamedev.net ). Get over there and
download his base code.

You should take a look mainly at the function LRESULT CALLBACK
WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
I think that might help you.

Hi all,
I was looking around about getting Windows events in my code, but I’m
able to poll SDL events only. How could I get external events? Thank you
in advance for your help.

Take a look at the SDL_syswm.h interface. It’s kind of ugly,
so you may want to look at the “scrap” demo on the SDL website
for an example of how to use it.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment